Search Results for

    Show / Hide Table of Contents

    Struct Box3d

    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 Box3d

    Constructors

    Box3d(AxisAlignedBox3d)

    Declaration
    public Box3d(AxisAlignedBox3d aaBox)
    Parameters
    Type Name Description
    AxisAlignedBox3d aaBox

    Box3d(Frame3f, Vector3d)

    Declaration
    public Box3d(Frame3f frame, Vector3d extent)
    Parameters
    Type Name Description
    Frame3f frame
    Vector3d extent

    Box3d(Segment3d)

    Declaration
    public Box3d(Segment3d seg)
    Parameters
    Type Name Description
    Segment3d seg

    Box3d(Vector3d)

    Declaration
    public Box3d(Vector3d center)
    Parameters
    Type Name Description
    Vector3d center

    Box3d(Vector3d, Vector3d)

    Declaration
    public Box3d(Vector3d center, Vector3d extent)
    Parameters
    Type Name Description
    Vector3d center
    Vector3d extent

    Box3d(Vector3d, Vector3d, Vector3d, Vector3d, Vector3d)

    Declaration
    public Box3d(Vector3d center, Vector3d x, Vector3d y, Vector3d z, Vector3d extent)
    Parameters
    Type Name Description
    Vector3d center
    Vector3d x
    Vector3d y
    Vector3d z
    Vector3d extent

    Fields

    AxisX

    Declaration
    public Vector3d AxisX
    Field Value
    Type Description
    Vector3d

    AxisY

    Declaration
    public Vector3d AxisY
    Field Value
    Type Description
    Vector3d

    AxisZ

    Declaration
    public Vector3d AxisZ
    Field Value
    Type Description
    Vector3d

    Center

    Declaration
    public Vector3d Center
    Field Value
    Type Description
    Vector3d

    Empty

    Declaration
    public static readonly Box3d Empty
    Field Value
    Type Description
    Box3d

    Extent

    Declaration
    public Vector3d Extent
    Field Value
    Type Description
    Vector3d

    UnitPositive

    Declaration
    public static readonly Box3d UnitPositive
    Field Value
    Type Description
    Box3d

    UnitZeroCentered

    Declaration
    public static readonly Box3d UnitZeroCentered
    Field Value
    Type Description
    Box3d

    Properties

    Diagonal

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

    MaxExtent

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

    MinExtent

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

    Volume

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

    Methods

    Axis(Int32)

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

    ClosestPoint(Vector3d)

    Returns distance to box, or 0 if point is inside box. Ported from WildMagic5 Wm5DistPoint3Box3.cpp

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

    ComputeVertices()

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

    ComputeVertices(Vector3d[])

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

    Contain(Box3d)

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

    Contain(Vector3d)

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

    Contain(IEnumerable<Vector3d>)

    update the box to contain set of input points. More efficient tha ncalling Contain() many times code ported from GTEngine GteContOrientedBox3.h

    Declaration
    public void Contain(IEnumerable<Vector3d> points)
    Parameters
    Type Name Description
    IEnumerable<Vector3d> points

    Contains(Vector3d)

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

    Corner(Int32)

    Declaration
    public Vector3d Corner(int i)
    Parameters
    Type Name Description
    Int32 i
    Returns
    Type Description
    Vector3d

    DistanceSquared(Vector3d)

    Returns distance to box, or 0 if point is inside box. Ported from WildMagic5 Wm5DistPoint3Box3.cpp

    Declaration
    public double DistanceSquared(Vector3d v)
    Parameters
    Type Name Description
    Vector3d v
    Returns
    Type Description
    Double

    Expand(Double)

    Declaration
    public void Expand(double f)
    Parameters
    Type Name Description
    Double f

    Merge(ref Box3d, ref Box3d)

    Declaration
    public static Box3d Merge(ref Box3d box0, ref Box3d box1)
    Parameters
    Type Name Description
    Box3d box0
    Box3d box1
    Returns
    Type Description
    Box3d

    Scale(Vector3d)

    Declaration
    public void Scale(Vector3d s)
    Parameters
    Type Name Description
    Vector3d s

    ScaleExtents(Vector3d)

    Declaration
    public void ScaleExtents(Vector3d s)
    Parameters
    Type Name Description
    Vector3d s

    ToAABB()

    Declaration
    public AxisAlignedBox3d ToAABB()
    Returns
    Type Description
    AxisAlignedBox3d

    Translate(Vector3d)

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

    VerticesItr()

    Declaration
    public IEnumerable<Vector3d> VerticesItr()
    Returns
    Type Description
    IEnumerable<Vector3d>

    Operators

    Explicit(Box3d to Box3f)

    Declaration
    public static explicit operator Box3f(Box3d v)
    Parameters
    Type Name Description
    Box3d v
    Returns
    Type Description
    Box3f

    Implicit(Box3f to Box3d)

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