Struct AxisAlignedBox2d
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct AxisAlignedBox2d
Constructors
AxisAlignedBox2d(AxisAlignedBox2d)
Declaration
public AxisAlignedBox2d(AxisAlignedBox2d o)
Parameters
AxisAlignedBox2d(Vector2d)
Declaration
public AxisAlignedBox2d(Vector2d vCenter)
Parameters
AxisAlignedBox2d(Vector2d, Vector2d)
Declaration
public AxisAlignedBox2d(Vector2d vMin, Vector2d vMax)
Parameters
AxisAlignedBox2d(Vector2d, Double)
Declaration
public AxisAlignedBox2d(Vector2d vCenter, double fHalfWidth)
Parameters
AxisAlignedBox2d(Vector2d, Double, Double)
Declaration
public AxisAlignedBox2d(Vector2d vCenter, double fHalfWidth, double fHalfHeight)
Parameters
AxisAlignedBox2d(Boolean)
Declaration
public AxisAlignedBox2d(bool bIgnore)
Parameters
Type |
Name |
Description |
Boolean |
bIgnore |
|
AxisAlignedBox2d(Double)
Declaration
public AxisAlignedBox2d(double fSquareSize)
Parameters
Type |
Name |
Description |
Double |
fSquareSize |
|
AxisAlignedBox2d(Double, Double)
Declaration
public AxisAlignedBox2d(double fWidth, double fHeight)
Parameters
AxisAlignedBox2d(Double, Double, Double, Double)
Declaration
public AxisAlignedBox2d(double xmin, double ymin, double xmax, double ymax)
Parameters
Fields
Empty
Declaration
public static readonly AxisAlignedBox2d Empty
Field Value
Infinite
Declaration
public static readonly AxisAlignedBox2d Infinite
Field Value
Max
Declaration
Field Value
Min
Declaration
Field Value
UnitPositive
Declaration
public static readonly AxisAlignedBox2d UnitPositive
Field Value
Zero
Declaration
public static readonly AxisAlignedBox2d Zero
Field Value
Properties
Area
Declaration
public double Area { get; }
Property Value
Center
Declaration
public Vector2d Center { get; }
Property Value
Diagonal
Declaration
public Vector2d Diagonal { get; }
Property Value
DiagonalLength
Declaration
public double DiagonalLength { get; }
Property Value
Height
Declaration
public double Height { get; }
Property Value
MaxDim
Declaration
public double MaxDim { get; }
Property Value
MaxUnsignedCoordinate
returns absolute value of largest min/max x/y coordinate (ie max axis distance to origin)
Declaration
public double MaxUnsignedCoordinate { get; }
Property Value
MinDim
Declaration
public double MinDim { get; }
Property Value
Width
Declaration
public double Width { get; }
Property Value
Methods
Add(Double, Double, Double, Double)
Declaration
public void Add(double left, double right, double bottom, double top)
Parameters
Contain(AxisAlignedBox2d)
Declaration
public void Contain(AxisAlignedBox2d box)
Parameters
Contain(ref AxisAlignedBox2d)
Declaration
public void Contain(ref AxisAlignedBox2d box)
Parameters
Contain(Vector2d)
Declaration
public void Contain(Vector2d v)
Parameters
Contain(ref Vector2d)
Declaration
public void Contain(ref Vector2d v)
Parameters
Contain(IList<Vector2d>)
Declaration
public void Contain(IList<Vector2d> points)
Parameters
Contains(AxisAlignedBox2d)
Declaration
public bool Contains(AxisAlignedBox2d box2)
Parameters
Returns
Contains(ref AxisAlignedBox2d)
Declaration
public bool Contains(ref AxisAlignedBox2d box2)
Parameters
Returns
Contains(Vector2d)
Declaration
public bool Contains(Vector2d v)
Parameters
Returns
Contains(ref Vector2d)
Declaration
public bool Contains(ref Vector2d v)
Parameters
Returns
Contract(Double)
Declaration
public void Contract(double fRadius)
Parameters
Type |
Name |
Description |
Double |
fRadius |
|
Distance(Vector2d)
Declaration
public double Distance(Vector2d v)
Parameters
Returns
Expand(Double)
Declaration
public void Expand(double fRadius)
Parameters
Type |
Name |
Description |
Double |
fRadius |
|
GetCorner(Int32)
Declaration
public Vector2d GetCorner(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
Intersect(AxisAlignedBox2d)
Declaration
public AxisAlignedBox2d Intersect(AxisAlignedBox2d box)
Parameters
Returns
Intersects(AxisAlignedBox2d)
Declaration
public bool Intersects(AxisAlignedBox2d box)
Parameters
Returns
Intersects(ref AxisAlignedBox2d)
Declaration
public bool Intersects(ref AxisAlignedBox2d box)
Parameters
Returns
MoveMin(Vector2d)
Declaration
public void MoveMin(Vector2d vNewMin)
Parameters
MoveMin(Double, Double)
Declaration
public void MoveMin(double fNewX, double fNewY)
Parameters
Pad(Double, Double, Double, Double)
Declaration
[Obsolete("This method name is confusing. Will remove in future. Use Add() instead")]
public void Pad(double fPadLeft, double fPadRight, double fPadBottom, double fPadTop)
Parameters
SampleT(Double, Double)
Point inside box where t,s are in range [0,1]
Declaration
public Vector2d SampleT(double tx, double sy)
Parameters
Returns
Scale(Double)
Declaration
public void Scale(double scale)
Parameters
Type |
Name |
Description |
Double |
scale |
|
Scale(Double, Vector2d)
Declaration
public void Scale(double scale, Vector2d origin)
Parameters
SetHeight(Double, AxisAlignedBox2d.ScaleMode)
Declaration
public void SetHeight(double fNewHeight, AxisAlignedBox2d.ScaleMode eScaleMode)
Parameters
SetWidth(Double, AxisAlignedBox2d.ScaleMode)
Declaration
public void SetWidth(double fNewWidth, AxisAlignedBox2d.ScaleMode eScaleMode)
Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
Translate(Vector2d)
Declaration
public void Translate(Vector2d vTranslate)
Parameters
Type |
Name |
Description |
Vector2d |
vTranslate |
|