Struct AxisAlignedBox2i
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct AxisAlignedBox2i : IComparable<AxisAlignedBox2i>, IEquatable<AxisAlignedBox2i>
Constructors
AxisAlignedBox2i(Vector2i)
Declaration
public AxisAlignedBox2i(Vector2i vCenter)
Parameters
AxisAlignedBox2i(Vector2i, Vector2i)
Declaration
public AxisAlignedBox2i(Vector2i vMin, Vector2i vMax)
Parameters
AxisAlignedBox2i(Vector2i, Int32)
Declaration
public AxisAlignedBox2i(Vector2i vCenter, int fHalfSize)
Parameters
AxisAlignedBox2i(Vector2i, Int32, Int32, Int32)
Declaration
public AxisAlignedBox2i(Vector2i vCenter, int fHalfWidth, int fHalfHeight, int fHalfDepth)
Parameters
AxisAlignedBox2i(Boolean)
Declaration
public AxisAlignedBox2i(bool bIgnore)
Parameters
Type |
Name |
Description |
Boolean |
bIgnore |
|
AxisAlignedBox2i(Int32)
Declaration
public AxisAlignedBox2i(int fCubeSize)
Parameters
Type |
Name |
Description |
Int32 |
fCubeSize |
|
AxisAlignedBox2i(Int32, Int32)
Declaration
public AxisAlignedBox2i(int fWidth, int fHeight)
Parameters
AxisAlignedBox2i(Int32, Int32, Int32, Int32)
Declaration
public AxisAlignedBox2i(int xmin, int ymin, int xmax, int ymax)
Parameters
Fields
Empty
Declaration
public static readonly AxisAlignedBox2i Empty
Field Value
Infinite
Declaration
public static readonly AxisAlignedBox2i Infinite
Field Value
Max
Declaration
Field Value
Min
Declaration
Field Value
UnitPositive
Declaration
public static readonly AxisAlignedBox2i UnitPositive
Field Value
Zero
Declaration
public static readonly AxisAlignedBox2i Zero
Field Value
Properties
Area
Declaration
Property Value
Center
Declaration
public Vector2i Center { get; }
Property Value
Diagonal
Declaration
public Vector2i Diagonal { get; }
Property Value
DiagonalLength
Declaration
public int DiagonalLength { get; }
Property Value
Extents
Declaration
public Vector2i Extents { get; }
Property Value
Height
Declaration
public int Height { get; }
Property Value
MaxDim
Declaration
public int MaxDim { get; }
Property Value
Width
Declaration
public int Width { get; }
Property Value
Methods
CompareTo(AxisAlignedBox2i)
Declaration
public int CompareTo(AxisAlignedBox2i other)
Parameters
Returns
Contain(AxisAlignedBox2i)
Declaration
public void Contain(AxisAlignedBox2i box)
Parameters
Contain(AxisAlignedBox3d)
Declaration
public void Contain(AxisAlignedBox3d box)
Parameters
Contain(Vector2i)
Declaration
public void Contain(Vector2i v)
Parameters
Contain(Vector3d)
Declaration
public void Contain(Vector3d v)
Parameters
Contains(AxisAlignedBox2i)
Declaration
public bool Contains(AxisAlignedBox2i box)
Parameters
Returns
Contains(ref AxisAlignedBox2i)
Declaration
public bool Contains(ref AxisAlignedBox2i box)
Parameters
Returns
Contains(Vector2i)
Declaration
public bool Contains(Vector2i v)
Parameters
Returns
Contains(ref Vector2i)
Declaration
public bool Contains(ref Vector2i v)
Parameters
Returns
Contract(Int32)
Declaration
public void Contract(int nRadius)
Parameters
Type |
Name |
Description |
Int32 |
nRadius |
|
Distance(Vector2i)
Declaration
public int Distance(Vector2i v)
Parameters
Returns
DistanceSquared(Vector2i)
Declaration
public double DistanceSquared(Vector2i v)
Parameters
Returns
Equals(AxisAlignedBox2i)
Declaration
public bool Equals(AxisAlignedBox2i 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 |
|
GetCorner(Int32)
Declaration
public Vector2i GetCorner(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
IndicesExclusive()
Declaration
public IEnumerable<Vector2i> IndicesExclusive()
Returns
IndicesInclusive()
Declaration
public IEnumerable<Vector2i> IndicesInclusive()
Returns
Intersect(AxisAlignedBox2i)
Declaration
public AxisAlignedBox2i Intersect(AxisAlignedBox2i box)
Parameters
Returns
Intersects(AxisAlignedBox2i)
Declaration
public bool Intersects(AxisAlignedBox2i box)
Parameters
Returns
MoveMin(Vector2i)
Declaration
public void MoveMin(Vector2i vNewMin)
Parameters
MoveMin(Int32, Int32)
Declaration
public void MoveMin(int fNewX, int fNewY)
Parameters
NearestPoint(Vector2i)
Declaration
public Vector2i NearestPoint(Vector2i 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(Vector2i)
Declaration
public void Translate(Vector2i vTranslate)
Parameters
Type |
Name |
Description |
Vector2i |
vTranslate |
|
Operators
Equality(AxisAlignedBox2i, AxisAlignedBox2i)
Declaration
public static bool operator ==(AxisAlignedBox2i a, AxisAlignedBox2i b)
Parameters
Returns
Inequality(AxisAlignedBox2i, AxisAlignedBox2i)
Declaration
public static bool operator !=(AxisAlignedBox2i a, AxisAlignedBox2i b)
Parameters
Returns
Implements