Struct AxisAlignedBox3d
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct AxisAlignedBox3d : IComparable<AxisAlignedBox3d>, IEquatable<AxisAlignedBox3d>
Constructors
AxisAlignedBox3d(Vector3d)
Declaration
public AxisAlignedBox3d(Vector3d vCenter)
Parameters
AxisAlignedBox3d(Vector3d, Vector3d)
Declaration
public AxisAlignedBox3d(Vector3d vMin, Vector3d vMax)
Parameters
AxisAlignedBox3d(Vector3d, Double)
Declaration
public AxisAlignedBox3d(Vector3d vCenter, double fHalfSize)
Parameters
AxisAlignedBox3d(Vector3d, Double, Double, Double)
Declaration
public AxisAlignedBox3d(Vector3d vCenter, double fHalfWidth, double fHalfHeight, double fHalfDepth)
Parameters
AxisAlignedBox3d(ref Vector3d, ref Vector3d)
Declaration
public AxisAlignedBox3d(ref Vector3d vMin, ref Vector3d vMax)
Parameters
AxisAlignedBox3d(ref Vector3d, Double, Double, Double)
Declaration
public AxisAlignedBox3d(ref Vector3d vCenter, double fHalfWidth, double fHalfHeight, double fHalfDepth)
Parameters
AxisAlignedBox3d(Boolean)
Declaration
public AxisAlignedBox3d(bool bIgnore)
Parameters
Type |
Name |
Description |
Boolean |
bIgnore |
|
AxisAlignedBox3d(Double)
init box [0,size] x [0,size] x [0,size]
Declaration
public AxisAlignedBox3d(double fCubeSize)
Parameters
Type |
Name |
Description |
Double |
fCubeSize |
|
AxisAlignedBox3d(Double, Double, Double)
Init box [0,width] x [0,height] x [0,depth]
Declaration
public AxisAlignedBox3d(double fWidth, double fHeight, double fDepth)
Parameters
AxisAlignedBox3d(Double, Double, Double, Double, Double, Double)
Declaration
public AxisAlignedBox3d(double xmin, double ymin, double zmin, double xmax, double ymax, double zmax)
Parameters
Fields
Empty
Declaration
public static readonly AxisAlignedBox3d Empty
Field Value
Infinite
Declaration
public static readonly AxisAlignedBox3d Infinite
Field Value
Max
Declaration
Field Value
Min
Declaration
Field Value
UnitPositive
Declaration
public static readonly AxisAlignedBox3d UnitPositive
Field Value
Zero
Declaration
public static readonly AxisAlignedBox3d Zero
Field Value
Properties
Center
Declaration
public Vector3d Center { get; }
Property Value
Depth
Declaration
public double Depth { get; }
Property Value
Diagonal
Declaration
public Vector3d Diagonal { get; }
Property Value
DiagonalLength
Declaration
public double DiagonalLength { get; }
Property Value
Extents
Declaration
public Vector3d Extents { get; }
Property Value
Height
Declaration
public double Height { get; }
Property Value
MaxDim
Declaration
public double MaxDim { get; }
Property Value
Volume
Declaration
public double Volume { get; }
Property Value
Width
Declaration
public double Width { get; }
Property Value
Methods
CompareTo(AxisAlignedBox3d)
Declaration
public int CompareTo(AxisAlignedBox3d other)
Parameters
Returns
Contain(AxisAlignedBox3d)
Declaration
public void Contain(AxisAlignedBox3d box)
Parameters
Contain(ref AxisAlignedBox3d)
Declaration
public void Contain(ref AxisAlignedBox3d box)
Parameters
Contain(Vector3d)
Declaration
public void Contain(Vector3d v)
Parameters
Contain(ref Vector3d)
Declaration
public void Contain(ref Vector3d v)
Parameters
Contains(AxisAlignedBox3d)
Declaration
public bool Contains(AxisAlignedBox3d box2)
Parameters
Returns
Contains(ref AxisAlignedBox3d)
Declaration
public bool Contains(ref AxisAlignedBox3d box2)
Parameters
Returns
Contains(Vector3d)
Declaration
public bool Contains(Vector3d v)
Parameters
Returns
Contains(ref Vector3d)
Declaration
public bool Contains(ref Vector3d v)
Parameters
Returns
Contract(Double)
Declaration
public void Contract(double fRadius)
Parameters
Type |
Name |
Description |
Double |
fRadius |
|
Contracted(Double)
Declaration
public AxisAlignedBox3d Contracted(double fRadius)
Parameters
Type |
Name |
Description |
Double |
fRadius |
|
Returns
Corner(Int32)
Declaration
public Vector3d Corner(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
Distance(Vector3d)
Declaration
public double Distance(Vector3d v)
Parameters
Returns
DistanceSquared(ref AxisAlignedBox3d)
Declaration
public double DistanceSquared(ref AxisAlignedBox3d box2)
Parameters
Returns
DistanceSquared(Vector3d)
Declaration
public double DistanceSquared(Vector3d v)
Parameters
Returns
Equals(AxisAlignedBox3d)
Declaration
public bool Equals(AxisAlignedBox3d other)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
Expand(Double)
Declaration
public void Expand(double fRadius)
Parameters
Type |
Name |
Description |
Double |
fRadius |
|
Expanded(Double)
Declaration
public AxisAlignedBox3d Expanded(double fRadius)
Parameters
Type |
Name |
Description |
Double |
fRadius |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Intersect(AxisAlignedBox3d)
Declaration
public AxisAlignedBox3d Intersect(AxisAlignedBox3d box)
Parameters
Returns
Intersects(AxisAlignedBox3d)
Declaration
public bool Intersects(AxisAlignedBox3d box)
Parameters
Returns
MoveMin(Vector3d)
Declaration
public void MoveMin(Vector3d vNewMin)
Parameters
MoveMin(Double, Double, Double)
Declaration
public void MoveMin(double fNewX, double fNewY, double fNewZ)
Parameters
Point(Int32, Int32, Int32)
Returns point on face/edge/corner. For each coord value neg==min, 0==center, pos==max
Declaration
public Vector3d Point(int xi, int yi, int zi)
Parameters
Returns
Scale(Double, Double, Double)
Declaration
public void Scale(double sx, double sy, double sz)
Parameters
SignedDistance(Vector3d)
Declaration
public double SignedDistance(Vector3d v)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Translate(Vector3d)
Declaration
public void Translate(Vector3d vTranslate)
Parameters
Type |
Name |
Description |
Vector3d |
vTranslate |
|
Operators
Equality(AxisAlignedBox3d, AxisAlignedBox3d)
Declaration
public static bool operator ==(AxisAlignedBox3d a, AxisAlignedBox3d b)
Parameters
Returns
Explicit(AxisAlignedBox3d to AxisAlignedBox3f)
Declaration
public static explicit operator AxisAlignedBox3f(AxisAlignedBox3d v)
Parameters
Returns
Implicit(AxisAlignedBox3f to AxisAlignedBox3d)
Declaration
public static implicit operator AxisAlignedBox3d(AxisAlignedBox3f v)
Parameters
Returns
Inequality(AxisAlignedBox3d, AxisAlignedBox3d)
Declaration
public static bool operator !=(AxisAlignedBox3d a, AxisAlignedBox3d b)
Parameters
Returns
Implements