Struct Box3d
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
Constructors
Box3d(AxisAlignedBox3d)
Declaration
public Box3d(AxisAlignedBox3d aaBox)
Parameters
Box3d(Frame3f, Vector3d)
Declaration
public Box3d(Frame3f frame, Vector3d extent)
Parameters
Box3d(Segment3d)
Declaration
public Box3d(Segment3d seg)
Parameters
Box3d(Vector3d)
Declaration
public Box3d(Vector3d center)
Parameters
Box3d(Vector3d, Vector3d)
Declaration
public Box3d(Vector3d center, Vector3d extent)
Parameters
Box3d(Vector3d, Vector3d, Vector3d, Vector3d, Vector3d)
Declaration
public Box3d(Vector3d center, Vector3d x, Vector3d y, Vector3d z, Vector3d extent)
Parameters
Fields
AxisX
Declaration
Field Value
AxisY
Declaration
Field Value
AxisZ
Declaration
Field Value
Center
Declaration
Field Value
Empty
Declaration
public static readonly Box3d Empty
Field Value
Extent
Declaration
Field Value
UnitPositive
Declaration
public static readonly Box3d UnitPositive
Field Value
UnitZeroCentered
Declaration
public static readonly Box3d UnitZeroCentered
Field Value
Properties
Diagonal
Declaration
public Vector3d Diagonal { get; }
Property Value
MaxExtent
Declaration
public double MaxExtent { get; }
Property Value
MinExtent
Declaration
public double MinExtent { get; }
Property Value
Volume
Declaration
public double Volume { get; }
Property Value
Methods
Axis(Int32)
Declaration
public Vector3d Axis(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
ClosestPoint(Vector3d)
Returns distance to box, or 0 if point is inside box.
Ported from WildMagic5 Wm5DistPoint3Box3.cpp
Declaration
public Vector3d ClosestPoint(Vector3d v)
Parameters
Returns
ComputeVertices()
Declaration
public Vector3d[] ComputeVertices()
Returns
ComputeVertices(Vector3d[])
Declaration
public void ComputeVertices(Vector3d[] vertex)
Parameters
Contain(Box3d)
Declaration
public void Contain(Box3d o)
Parameters
Type |
Name |
Description |
Box3d |
o |
|
Contain(Vector3d)
Declaration
public void Contain(Vector3d v)
Parameters
Contain(IEnumerable<Vector3d>)
update the box to contain set of input points. More efficient tha ncalling Contain() many times
code ported from GTEngine GteContOrientedBox3.h
Declaration
public void Contain(IEnumerable<Vector3d> points)
Parameters
Contains(Vector3d)
Declaration
public bool Contains(Vector3d v)
Parameters
Returns
Corner(Int32)
Declaration
public Vector3d Corner(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
DistanceSquared(Vector3d)
Returns distance to box, or 0 if point is inside box.
Ported from WildMagic5 Wm5DistPoint3Box3.cpp
Declaration
public double DistanceSquared(Vector3d v)
Parameters
Returns
Expand(Double)
Declaration
public void Expand(double f)
Parameters
Type |
Name |
Description |
Double |
f |
|
Merge(ref Box3d, ref Box3d)
Declaration
public static Box3d Merge(ref Box3d box0, ref Box3d box1)
Parameters
Returns
Scale(Vector3d)
Declaration
public void Scale(Vector3d s)
Parameters
ScaleExtents(Vector3d)
Declaration
public void ScaleExtents(Vector3d s)
Parameters
ToAABB()
Declaration
public AxisAlignedBox3d ToAABB()
Returns
Translate(Vector3d)
Declaration
public void Translate(Vector3d v)
Parameters
VerticesItr()
Declaration
public IEnumerable<Vector3d> VerticesItr()
Returns
Operators
Explicit(Box3d to Box3f)
Declaration
public static explicit operator Box3f(Box3d v)
Parameters
Type |
Name |
Description |
Box3d |
v |
|
Returns
Implicit(Box3f to Box3d)
Declaration
public static implicit operator Box3d(Box3f v)
Parameters
Type |
Name |
Description |
Box3f |
v |
|
Returns