Struct AxisAlignedBox3i
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct AxisAlignedBox3i : IComparable<AxisAlignedBox3i>, IEquatable<AxisAlignedBox3i>
Constructors
AxisAlignedBox3i(Vector3i)
Declaration
public AxisAlignedBox3i(Vector3i vCenter)
Parameters
AxisAlignedBox3i(Vector3i, Vector3i)
Declaration
public AxisAlignedBox3i(Vector3i vMin, Vector3i vMax)
Parameters
AxisAlignedBox3i(Vector3i, Int32)
Declaration
public AxisAlignedBox3i(Vector3i vCenter, int fHalfSize)
Parameters
AxisAlignedBox3i(Vector3i, Int32, Int32, Int32)
Declaration
public AxisAlignedBox3i(Vector3i vCenter, int fHalfWidth, int fHalfHeight, int fHalfDepth)
Parameters
AxisAlignedBox3i(Boolean)
Declaration
public AxisAlignedBox3i(bool bIgnore)
Parameters
Type |
Name |
Description |
Boolean |
bIgnore |
|
AxisAlignedBox3i(Int32)
Declaration
public AxisAlignedBox3i(int fCubeSize)
Parameters
Type |
Name |
Description |
Int32 |
fCubeSize |
|
AxisAlignedBox3i(Int32, Int32, Int32)
Declaration
public AxisAlignedBox3i(int fWidth, int fHeight, int fDepth)
Parameters
AxisAlignedBox3i(Int32, Int32, Int32, Int32, Int32, Int32)
Declaration
public AxisAlignedBox3i(int xmin, int ymin, int zmin, int xmax, int ymax, int zmax)
Parameters
Fields
Empty
Declaration
public static readonly AxisAlignedBox3i Empty
Field Value
Infinite
Declaration
public static readonly AxisAlignedBox3i Infinite
Field Value
Max
Declaration
Field Value
Min
Declaration
Field Value
UnitPositive
Declaration
public static readonly AxisAlignedBox3i UnitPositive
Field Value
Zero
Declaration
public static readonly AxisAlignedBox3i Zero
Field Value
Properties
Center
Declaration
public Vector3i Center { get; }
Property Value
Depth
Declaration
public int Depth { get; }
Property Value
Diagonal
Declaration
public Vector3i Diagonal { get; }
Property Value
DiagonalLength
Declaration
public int DiagonalLength { get; }
Property Value
Extents
Declaration
public Vector3i Extents { get; }
Property Value
Height
Declaration
public int Height { get; }
Property Value
MaxDim
Declaration
public int MaxDim { get; }
Property Value
Volume
Declaration
public int Volume { get; }
Property Value
Width
Declaration
public int Width { get; }
Property Value
Methods
ClampExclusive(Vector3i)
clamp v to grid bounds [min,max)
Declaration
public Vector3i ClampExclusive(Vector3i v)
Parameters
Returns
ClampInclusive(Vector3i)
Clamp v to grid bounds [min, max]
Declaration
public Vector3i ClampInclusive(Vector3i v)
Parameters
Returns
CompareTo(AxisAlignedBox3i)
Declaration
public int CompareTo(AxisAlignedBox3i other)
Parameters
Returns
Contain(AxisAlignedBox3d)
Declaration
public void Contain(AxisAlignedBox3d box)
Parameters
Contain(AxisAlignedBox3i)
Declaration
public void Contain(AxisAlignedBox3i box)
Parameters
Contain(Vector3d)
Declaration
public void Contain(Vector3d v)
Parameters
Contain(Vector3i)
Declaration
public void Contain(Vector3i v)
Parameters
Contains(Vector3i)
Declaration
public bool Contains(Vector3i v)
Parameters
Returns
Contract(Int32)
Declaration
public void Contract(int nRadius)
Parameters
Type |
Name |
Description |
Int32 |
nRadius |
|
Distance(Vector3i)
Declaration
public int Distance(Vector3i v)
Parameters
Returns
DistanceSquared(Vector3i)
Declaration
public double DistanceSquared(Vector3i v)
Parameters
Returns
Equals(AxisAlignedBox3i)
Declaration
public bool Equals(AxisAlignedBox3i other)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
Expand(Int32)
Declaration
public void Expand(int nRadius)
Parameters
Type |
Name |
Description |
Int32 |
nRadius |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
IndicesExclusive()
Declaration
public IEnumerable<Vector3i> IndicesExclusive()
Returns
IndicesInclusive()
Declaration
public IEnumerable<Vector3i> IndicesInclusive()
Returns
Intersect(AxisAlignedBox3i)
Declaration
public AxisAlignedBox3i Intersect(AxisAlignedBox3i box)
Parameters
Returns
Intersects(AxisAlignedBox3i)
Declaration
public bool Intersects(AxisAlignedBox3i box)
Parameters
Returns
MoveMin(Vector3i)
Declaration
public void MoveMin(Vector3i vNewMin)
Parameters
MoveMin(Int32, Int32, Int32)
Declaration
public void MoveMin(int fNewX, int fNewY, int fNewZ)
Parameters
NearestPoint(Vector3i)
Declaration
public Vector3i NearestPoint(Vector3i v)
Parameters
Returns
Scale(Int32, Int32, Int32)
Declaration
public void Scale(int sx, int sy, int sz)
Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
Translate(Vector3i)
Declaration
public void Translate(Vector3i vTranslate)
Parameters
Type |
Name |
Description |
Vector3i |
vTranslate |
|
Operators
Equality(AxisAlignedBox3i, AxisAlignedBox3i)
Declaration
public static bool operator ==(AxisAlignedBox3i a, AxisAlignedBox3i b)
Parameters
Returns
Inequality(AxisAlignedBox3i, AxisAlignedBox3i)
Declaration
public static bool operator !=(AxisAlignedBox3i a, AxisAlignedBox3i b)
Parameters
Returns
Implements