Search Results for

    Show / Hide Table of Contents

    Struct Box2d

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

    Constructors

    Box2d(AxisAlignedBox2d)

    Declaration
    public Box2d(AxisAlignedBox2d aaBox)
    Parameters
    Type Name Description
    AxisAlignedBox2d aaBox

    Box2d(Segment2d)

    Declaration
    public Box2d(Segment2d seg)
    Parameters
    Type Name Description
    Segment2d seg

    Box2d(Vector2d)

    Declaration
    public Box2d(Vector2d center)
    Parameters
    Type Name Description
    Vector2d center

    Box2d(Vector2d, Vector2d)

    Declaration
    public Box2d(Vector2d center, Vector2d extent)
    Parameters
    Type Name Description
    Vector2d center
    Vector2d extent

    Box2d(Vector2d, Vector2d, Vector2d, Vector2d)

    Declaration
    public Box2d(Vector2d center, Vector2d x, Vector2d y, Vector2d extent)
    Parameters
    Type Name Description
    Vector2d center
    Vector2d x
    Vector2d y
    Vector2d extent

    Fields

    AxisX

    Declaration
    public Vector2d AxisX
    Field Value
    Type Description
    Vector2d

    AxisY

    Declaration
    public Vector2d AxisY
    Field Value
    Type Description
    Vector2d

    Center

    Declaration
    public Vector2d Center
    Field Value
    Type Description
    Vector2d

    Empty

    Declaration
    public static readonly Box2d Empty
    Field Value
    Type Description
    Box2d

    Extent

    Declaration
    public Vector2d Extent
    Field Value
    Type Description
    Vector2d

    Properties

    Area

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

    Diagonal

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

    MaxExtent

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

    MinExtent

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

    Methods

    Axis(Int32)

    Declaration
    public Vector2d Axis(int i)
    Parameters
    Type Name Description
    Int32 i
    Returns
    Type Description
    Vector2d

    ClosestPoint(Vector2d)

    Declaration
    public Vector2d ClosestPoint(Vector2d v)
    Parameters
    Type Name Description
    Vector2d v
    Returns
    Type Description
    Vector2d

    ComputeVertices()

    Declaration
    public Vector2d[] ComputeVertices()
    Returns
    Type Description
    Vector2d[]

    ComputeVertices(Vector2d[])

    Declaration
    public void ComputeVertices(Vector2d[] vertex)
    Parameters
    Type Name Description
    Vector2d[] vertex

    ComputeVertices(ref Vector2dTuple4)

    Declaration
    public void ComputeVertices(ref Vector2dTuple4 vertex)
    Parameters
    Type Name Description
    Vector2dTuple4 vertex

    Contain(Box2d)

    Declaration
    public void Contain(Box2d o)
    Parameters
    Type Name Description
    Box2d o

    Contain(Vector2d)

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

    Contains(Vector2d)

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

    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
    Type Name Description
    Vector2d v
    Returns
    Type Description
    Double

    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
    Type Name Description
    Box2d box0
    Box2d box1
    Returns
    Type Description
    Box2d

    RotateAxes(Matrix2d)

    Declaration
    public void RotateAxes(Matrix2d m)
    Parameters
    Type Name Description
    Matrix2d m

    Translate(Vector2d)

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

    Operators

    Explicit(Box2d to Box2f)

    Declaration
    public static explicit operator Box2f(Box2d v)
    Parameters
    Type Name Description
    Box2d v
    Returns
    Type Description
    Box2f

    Implicit(Box2f to Box2d)

    Declaration
    public static implicit operator Box2d(Box2f v)
    Parameters
    Type Name Description
    Box2f v
    Returns
    Type Description
    Box2d
    In This Article
    Back to top ViRGIS VR GIS