Struct Box2f
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
Constructors
Box2f(AxisAlignedBox2f)
Declaration
public Box2f(AxisAlignedBox2f aaBox)
Parameters
Box2f(Vector2f)
Declaration
public Box2f(Vector2f center)
Parameters
Box2f(Vector2f, Vector2f)
Declaration
public Box2f(Vector2f center, Vector2f extent)
Parameters
Box2f(Vector2f, Vector2f, Vector2f, Vector2f)
Declaration
public Box2f(Vector2f center, Vector2f x, Vector2f y, Vector2f extent)
Parameters
Fields
AxisX
Declaration
Field Value
AxisY
Declaration
Field Value
Center
Declaration
Field Value
Empty
Declaration
public static readonly Box2f Empty
Field Value
Extent
Declaration
Field Value
Properties
Area
Declaration
public double Area { get; }
Property Value
Diagonal
Declaration
public Vector2f Diagonal { get; }
Property Value
MaxExtent
Declaration
public double MaxExtent { get; }
Property Value
MinExtent
Declaration
public double MinExtent { get; }
Property Value
Methods
Axis(Int32)
Declaration
public Vector2f Axis(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
ComputeVertices()
Declaration
public Vector2f[] ComputeVertices()
Returns
ComputeVertices(Vector2f[])
Declaration
public void ComputeVertices(Vector2f[] vertex)
Parameters
Contain(Box2f)
Declaration
public void Contain(Box2f o)
Parameters
Type |
Name |
Description |
Box2f |
o |
|
Contain(Vector2f)
Declaration
public void Contain(Vector2f v)
Parameters
Contains(Vector2f)
Declaration
public bool Contains(Vector2f v)
Parameters
Returns
Expand(Single)
Declaration
public void Expand(float f)
Parameters
Type |
Name |
Description |
Single |
f |
|
Translate(Vector2f)
Declaration
public void Translate(Vector2f v)
Parameters