Struct Box2d
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
Constructors
Box2d(AxisAlignedBox2d)
Declaration
public Box2d(AxisAlignedBox2d aaBox)
Parameters
Box2d(Segment2d)
Declaration
public Box2d(Segment2d seg)
Parameters
Box2d(Vector2d)
Declaration
public Box2d(Vector2d center)
Parameters
Box2d(Vector2d, Vector2d)
Declaration
public Box2d(Vector2d center, Vector2d extent)
Parameters
Box2d(Vector2d, Vector2d, Vector2d, Vector2d)
Declaration
public Box2d(Vector2d center, Vector2d x, Vector2d y, Vector2d extent)
Parameters
Fields
AxisX
Declaration
Field Value
AxisY
Declaration
Field Value
Center
Declaration
Field Value
Empty
Declaration
public static readonly Box2d Empty
Field Value
Extent
Declaration
Field Value
Properties
Area
Declaration
public double Area { get; }
Property Value
Diagonal
Declaration
public Vector2d 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 Vector2d Axis(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
ClosestPoint(Vector2d)
Declaration
public Vector2d ClosestPoint(Vector2d v)
Parameters
Returns
ComputeVertices()
Declaration
public Vector2d[] ComputeVertices()
Returns
ComputeVertices(Vector2d[])
Declaration
public void ComputeVertices(Vector2d[] vertex)
Parameters
ComputeVertices(ref Vector2dTuple4)
Declaration
public void ComputeVertices(ref Vector2dTuple4 vertex)
Parameters
Contain(Box2d)
Declaration
public void Contain(Box2d o)
Parameters
Type |
Name |
Description |
Box2d |
o |
|
Contain(Vector2d)
Declaration
public void Contain(Vector2d v)
Parameters
Contains(Vector2d)
Declaration
public bool Contains(Vector2d v)
Parameters
Returns
DistanceSquared(Vector2d)
Returns distance to box, or 0 if point is inside box.
Ported from WildMagic5 Wm5DistPoint2Box2.cpp
Declaration
public double DistanceSquared(Vector2d v)
Parameters
Returns
Expand(Double)
Declaration
public void Expand(double f)
Parameters
Type |
Name |
Description |
Double |
f |
|
Merge(ref Box2d, ref Box2d)
Declaration
public static Box2d Merge(ref Box2d box0, ref Box2d box1)
Parameters
Returns
RotateAxes(Matrix2d)
Declaration
public void RotateAxes(Matrix2d m)
Parameters
Translate(Vector2d)
Declaration
public void Translate(Vector2d v)
Parameters
Operators
Explicit(Box2d to Box2f)
Declaration
public static explicit operator Box2f(Box2d v)
Parameters
Type |
Name |
Description |
Box2d |
v |
|
Returns
Implicit(Box2f to Box2d)
Declaration
public static implicit operator Box2d(Box2f v)
Parameters
Type |
Name |
Description |
Box2f |
v |
|
Returns