Struct AxisAlignedBox2f
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct AxisAlignedBox2f
Constructors
AxisAlignedBox2f(AxisAlignedBox2f)
Declaration
public AxisAlignedBox2f(AxisAlignedBox2f o)
Parameters
AxisAlignedBox2f(Vector2f)
Declaration
public AxisAlignedBox2f(Vector2f vCenter)
Parameters
AxisAlignedBox2f(Vector2f, Vector2f)
Declaration
public AxisAlignedBox2f(Vector2f vMin, Vector2f vMax)
Parameters
AxisAlignedBox2f(Vector2f, Single)
Declaration
public AxisAlignedBox2f(Vector2f vCenter, float fHalfWidth)
Parameters
AxisAlignedBox2f(Vector2f, Single, Single)
Declaration
public AxisAlignedBox2f(Vector2f vCenter, float fHalfWidth, float fHalfHeight)
Parameters
AxisAlignedBox2f(Boolean)
Declaration
public AxisAlignedBox2f(bool bIgnore)
Parameters
Type |
Name |
Description |
Boolean |
bIgnore |
|
AxisAlignedBox2f(Single)
Declaration
public AxisAlignedBox2f(float fSquareSize)
Parameters
Type |
Name |
Description |
Single |
fSquareSize |
|
AxisAlignedBox2f(Single, Single)
Declaration
public AxisAlignedBox2f(float fWidth, float fHeight)
Parameters
AxisAlignedBox2f(Single, Single, Single, Single)
Declaration
public AxisAlignedBox2f(float xmin, float ymin, float xmax, float ymax)
Parameters
Fields
Empty
Declaration
public static readonly AxisAlignedBox2f Empty
Field Value
Infinite
Declaration
public static readonly AxisAlignedBox2f Infinite
Field Value
Max
Declaration
Field Value
Min
Declaration
Field Value
UnitPositive
Declaration
public static readonly AxisAlignedBox2f UnitPositive
Field Value
Zero
Declaration
public static readonly AxisAlignedBox2f Zero
Field Value
Properties
Area
Declaration
public float Area { get; }
Property Value
BottomLeft
Declaration
public Vector2f BottomLeft { get; }
Property Value
BottomRight
Declaration
public Vector2f BottomRight { get; }
Property Value
Center
Declaration
public Vector2f Center { get; }
Property Value
CenterBottom
Declaration
public Vector2f CenterBottom { get; }
Property Value
CenterLeft
Declaration
public Vector2f CenterLeft { get; }
Property Value
CenterRight
Declaration
public Vector2f CenterRight { get; }
Property Value
CenterTop
Declaration
public Vector2f CenterTop { get; }
Property Value
Diagonal
Declaration
public Vector2f Diagonal { get; }
Property Value
DiagonalLength
Declaration
public float DiagonalLength { get; }
Property Value
Height
Declaration
public float Height { get; }
Property Value
MaxDim
Declaration
public float MaxDim { get; }
Property Value
TopLeft
Declaration
public Vector2f TopLeft { get; }
Property Value
TopRight
Declaration
public Vector2f TopRight { get; }
Property Value
Width
Declaration
public float Width { get; }
Property Value
Methods
Add(Single, Single, Single, Single)
Declaration
public void Add(float left, float right, float bottom, float top)
Parameters
Contain(AxisAlignedBox2f)
Declaration
public void Contain(AxisAlignedBox2f box)
Parameters
Contain(Vector2f)
Declaration
public void Contain(Vector2f v)
Parameters
Contains(Vector2f)
Declaration
public bool Contains(Vector2f v)
Parameters
Returns
Contract(Single)
Declaration
public void Contract(float fRadius)
Parameters
Type |
Name |
Description |
Single |
fRadius |
|
Distance(Vector2f)
Declaration
public float Distance(Vector2f v)
Parameters
Returns
Expand(Single)
Declaration
public void Expand(float fRadius)
Parameters
Type |
Name |
Description |
Single |
fRadius |
|
GetCorner(Int32)
Declaration
public Vector2f GetCorner(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
Intersect(AxisAlignedBox2f)
Declaration
public AxisAlignedBox2f Intersect(AxisAlignedBox2f box)
Parameters
Returns
Intersects(AxisAlignedBox2f)
Declaration
public bool Intersects(AxisAlignedBox2f box)
Parameters
Returns
MoveMin(Vector2f)
Declaration
public void MoveMin(Vector2f vNewMin)
Parameters
MoveMin(Single, Single)
Declaration
public void MoveMin(float fNewX, float fNewY)
Parameters
Pad(Single, Single, Single, Single)
Declaration
[Obsolete("This method name is confusing. Will remove in future. Use Add() instead")]
public void Pad(float fPadLeft, float fPadRight, float fPadBottom, float fPadTop)
Parameters
SetHeight(Single, AxisAlignedBox2f.ScaleMode)
Declaration
public void SetHeight(float fNewHeight, AxisAlignedBox2f.ScaleMode eScaleMode)
Parameters
SetWidth(Single, AxisAlignedBox2f.ScaleMode)
Declaration
public void SetWidth(float fNewWidth, AxisAlignedBox2f.ScaleMode eScaleMode)
Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
Translate(Vector2f)
Declaration
public void Translate(Vector2f vTranslate)
Parameters
Type |
Name |
Description |
Vector2f |
vTranslate |
|