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