Search Results for

    Show / Hide Table of Contents

    Struct AxisAlignedBox2d

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: g3
    Assembly: cs.temp.dll.dll
    Syntax
    public struct AxisAlignedBox2d

    Constructors

    AxisAlignedBox2d(AxisAlignedBox2d)

    Declaration
    public AxisAlignedBox2d(AxisAlignedBox2d o)
    Parameters
    Type Name Description
    AxisAlignedBox2d o

    AxisAlignedBox2d(Vector2d)

    Declaration
    public AxisAlignedBox2d(Vector2d vCenter)
    Parameters
    Type Name Description
    Vector2d vCenter

    AxisAlignedBox2d(Vector2d, Vector2d)

    Declaration
    public AxisAlignedBox2d(Vector2d vMin, Vector2d vMax)
    Parameters
    Type Name Description
    Vector2d vMin
    Vector2d vMax

    AxisAlignedBox2d(Vector2d, Double)

    Declaration
    public AxisAlignedBox2d(Vector2d vCenter, double fHalfWidth)
    Parameters
    Type Name Description
    Vector2d vCenter
    Double fHalfWidth

    AxisAlignedBox2d(Vector2d, Double, Double)

    Declaration
    public AxisAlignedBox2d(Vector2d vCenter, double fHalfWidth, double fHalfHeight)
    Parameters
    Type Name Description
    Vector2d vCenter
    Double fHalfWidth
    Double fHalfHeight

    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
    Type Name Description
    Double fWidth
    Double fHeight

    AxisAlignedBox2d(Double, Double, Double, Double)

    Declaration
    public AxisAlignedBox2d(double xmin, double ymin, double xmax, double ymax)
    Parameters
    Type Name Description
    Double xmin
    Double ymin
    Double xmax
    Double ymax

    Fields

    Empty

    Declaration
    public static readonly AxisAlignedBox2d Empty
    Field Value
    Type Description
    AxisAlignedBox2d

    Infinite

    Declaration
    public static readonly AxisAlignedBox2d Infinite
    Field Value
    Type Description
    AxisAlignedBox2d

    Max

    Declaration
    public Vector2d Max
    Field Value
    Type Description
    Vector2d

    Min

    Declaration
    public Vector2d Min
    Field Value
    Type Description
    Vector2d

    UnitPositive

    Declaration
    public static readonly AxisAlignedBox2d UnitPositive
    Field Value
    Type Description
    AxisAlignedBox2d

    Zero

    Declaration
    public static readonly AxisAlignedBox2d Zero
    Field Value
    Type Description
    AxisAlignedBox2d

    Properties

    Area

    Declaration
    public double Area { get; }
    Property Value
    Type Description
    Double

    Center

    Declaration
    public Vector2d Center { get; }
    Property Value
    Type Description
    Vector2d

    Diagonal

    Declaration
    public Vector2d Diagonal { get; }
    Property Value
    Type Description
    Vector2d

    DiagonalLength

    Declaration
    public double DiagonalLength { get; }
    Property Value
    Type Description
    Double

    Height

    Declaration
    public double Height { get; }
    Property Value
    Type Description
    Double

    MaxDim

    Declaration
    public double MaxDim { get; }
    Property Value
    Type Description
    Double

    MaxUnsignedCoordinate

    returns absolute value of largest min/max x/y coordinate (ie max axis distance to origin)

    Declaration
    public double MaxUnsignedCoordinate { get; }
    Property Value
    Type Description
    Double

    MinDim

    Declaration
    public double MinDim { get; }
    Property Value
    Type Description
    Double

    Width

    Declaration
    public double Width { get; }
    Property Value
    Type Description
    Double

    Methods

    Add(Double, Double, Double, Double)

    Declaration
    public void Add(double left, double right, double bottom, double top)
    Parameters
    Type Name Description
    Double left
    Double right
    Double bottom
    Double top

    Contain(AxisAlignedBox2d)

    Declaration
    public void Contain(AxisAlignedBox2d box)
    Parameters
    Type Name Description
    AxisAlignedBox2d box

    Contain(ref AxisAlignedBox2d)

    Declaration
    public void Contain(ref AxisAlignedBox2d box)
    Parameters
    Type Name Description
    AxisAlignedBox2d box

    Contain(Vector2d)

    Declaration
    public void Contain(Vector2d v)
    Parameters
    Type Name Description
    Vector2d v

    Contain(ref Vector2d)

    Declaration
    public void Contain(ref Vector2d v)
    Parameters
    Type Name Description
    Vector2d v

    Contain(IList<Vector2d>)

    Declaration
    public void Contain(IList<Vector2d> points)
    Parameters
    Type Name Description
    IList<Vector2d> points

    Contains(AxisAlignedBox2d)

    Declaration
    public bool Contains(AxisAlignedBox2d box2)
    Parameters
    Type Name Description
    AxisAlignedBox2d box2
    Returns
    Type Description
    Boolean

    Contains(ref AxisAlignedBox2d)

    Declaration
    public bool Contains(ref AxisAlignedBox2d box2)
    Parameters
    Type Name Description
    AxisAlignedBox2d box2
    Returns
    Type Description
    Boolean

    Contains(Vector2d)

    Declaration
    public bool Contains(Vector2d v)
    Parameters
    Type Name Description
    Vector2d v
    Returns
    Type Description
    Boolean

    Contains(ref Vector2d)

    Declaration
    public bool Contains(ref Vector2d v)
    Parameters
    Type Name Description
    Vector2d v
    Returns
    Type Description
    Boolean

    Contract(Double)

    Declaration
    public void Contract(double fRadius)
    Parameters
    Type Name Description
    Double fRadius

    Distance(Vector2d)

    Declaration
    public double Distance(Vector2d v)
    Parameters
    Type Name Description
    Vector2d v
    Returns
    Type Description
    Double

    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
    Type Description
    Vector2d

    Intersect(AxisAlignedBox2d)

    Declaration
    public AxisAlignedBox2d Intersect(AxisAlignedBox2d box)
    Parameters
    Type Name Description
    AxisAlignedBox2d box
    Returns
    Type Description
    AxisAlignedBox2d

    Intersects(AxisAlignedBox2d)

    Declaration
    public bool Intersects(AxisAlignedBox2d box)
    Parameters
    Type Name Description
    AxisAlignedBox2d box
    Returns
    Type Description
    Boolean

    Intersects(ref AxisAlignedBox2d)

    Declaration
    public bool Intersects(ref AxisAlignedBox2d box)
    Parameters
    Type Name Description
    AxisAlignedBox2d box
    Returns
    Type Description
    Boolean

    MoveMin(Vector2d)

    Declaration
    public void MoveMin(Vector2d vNewMin)
    Parameters
    Type Name Description
    Vector2d vNewMin

    MoveMin(Double, Double)

    Declaration
    public void MoveMin(double fNewX, double fNewY)
    Parameters
    Type Name Description
    Double fNewX
    Double fNewY

    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
    Type Name Description
    Double fPadLeft
    Double fPadRight
    Double fPadBottom
    Double fPadTop

    SampleT(Double, Double)

    Point inside box where t,s are in range [0,1]

    Declaration
    public Vector2d SampleT(double tx, double sy)
    Parameters
    Type Name Description
    Double tx
    Double sy
    Returns
    Type Description
    Vector2d

    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
    Type Name Description
    Double scale
    Vector2d origin

    SetHeight(Double, AxisAlignedBox2d.ScaleMode)

    Declaration
    public void SetHeight(double fNewHeight, AxisAlignedBox2d.ScaleMode eScaleMode)
    Parameters
    Type Name Description
    Double fNewHeight
    AxisAlignedBox2d.ScaleMode eScaleMode

    SetWidth(Double, AxisAlignedBox2d.ScaleMode)

    Declaration
    public void SetWidth(double fNewWidth, AxisAlignedBox2d.ScaleMode eScaleMode)
    Parameters
    Type Name Description
    Double fNewWidth
    AxisAlignedBox2d.ScaleMode eScaleMode

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()

    Translate(Vector2d)

    Declaration
    public void Translate(Vector2d vTranslate)
    Parameters
    Type Name Description
    Vector2d vTranslate
    In This Article
    Back to top ViRGIS VR GIS