Search Results for

    Show / Hide Table of Contents

    Struct AxisAlignedBox3d

    Implements
    IComparable<AxisAlignedBox3d>
    IEquatable<AxisAlignedBox3d>
    Inherited Members
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: g3
    Assembly: cs.temp.dll.dll
    Syntax
    public struct AxisAlignedBox3d : IComparable<AxisAlignedBox3d>, IEquatable<AxisAlignedBox3d>

    Constructors

    AxisAlignedBox3d(Vector3d)

    Declaration
    public AxisAlignedBox3d(Vector3d vCenter)
    Parameters
    Type Name Description
    Vector3d vCenter

    AxisAlignedBox3d(Vector3d, Vector3d)

    Declaration
    public AxisAlignedBox3d(Vector3d vMin, Vector3d vMax)
    Parameters
    Type Name Description
    Vector3d vMin
    Vector3d vMax

    AxisAlignedBox3d(Vector3d, Double)

    Declaration
    public AxisAlignedBox3d(Vector3d vCenter, double fHalfSize)
    Parameters
    Type Name Description
    Vector3d vCenter
    Double fHalfSize

    AxisAlignedBox3d(Vector3d, Double, Double, Double)

    Declaration
    public AxisAlignedBox3d(Vector3d vCenter, double fHalfWidth, double fHalfHeight, double fHalfDepth)
    Parameters
    Type Name Description
    Vector3d vCenter
    Double fHalfWidth
    Double fHalfHeight
    Double fHalfDepth

    AxisAlignedBox3d(ref Vector3d, ref Vector3d)

    Declaration
    public AxisAlignedBox3d(ref Vector3d vMin, ref Vector3d vMax)
    Parameters
    Type Name Description
    Vector3d vMin
    Vector3d vMax

    AxisAlignedBox3d(ref Vector3d, Double, Double, Double)

    Declaration
    public AxisAlignedBox3d(ref Vector3d vCenter, double fHalfWidth, double fHalfHeight, double fHalfDepth)
    Parameters
    Type Name Description
    Vector3d vCenter
    Double fHalfWidth
    Double fHalfHeight
    Double fHalfDepth

    AxisAlignedBox3d(Boolean)

    Declaration
    public AxisAlignedBox3d(bool bIgnore)
    Parameters
    Type Name Description
    Boolean bIgnore

    AxisAlignedBox3d(Double)

    init box [0,size] x [0,size] x [0,size]

    Declaration
    public AxisAlignedBox3d(double fCubeSize)
    Parameters
    Type Name Description
    Double fCubeSize

    AxisAlignedBox3d(Double, Double, Double)

    Init box [0,width] x [0,height] x [0,depth]

    Declaration
    public AxisAlignedBox3d(double fWidth, double fHeight, double fDepth)
    Parameters
    Type Name Description
    Double fWidth
    Double fHeight
    Double fDepth

    AxisAlignedBox3d(Double, Double, Double, Double, Double, Double)

    Declaration
    public AxisAlignedBox3d(double xmin, double ymin, double zmin, double xmax, double ymax, double zmax)
    Parameters
    Type Name Description
    Double xmin
    Double ymin
    Double zmin
    Double xmax
    Double ymax
    Double zmax

    Fields

    Empty

    Declaration
    public static readonly AxisAlignedBox3d Empty
    Field Value
    Type Description
    AxisAlignedBox3d

    Infinite

    Declaration
    public static readonly AxisAlignedBox3d Infinite
    Field Value
    Type Description
    AxisAlignedBox3d

    Max

    Declaration
    public Vector3d Max
    Field Value
    Type Description
    Vector3d

    Min

    Declaration
    public Vector3d Min
    Field Value
    Type Description
    Vector3d

    UnitPositive

    Declaration
    public static readonly AxisAlignedBox3d UnitPositive
    Field Value
    Type Description
    AxisAlignedBox3d

    Zero

    Declaration
    public static readonly AxisAlignedBox3d Zero
    Field Value
    Type Description
    AxisAlignedBox3d

    Properties

    Center

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

    Depth

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

    Diagonal

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

    DiagonalLength

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

    Extents

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

    Height

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

    MaxDim

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

    Volume

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

    Width

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

    Methods

    CompareTo(AxisAlignedBox3d)

    Declaration
    public int CompareTo(AxisAlignedBox3d other)
    Parameters
    Type Name Description
    AxisAlignedBox3d other
    Returns
    Type Description
    Int32

    Contain(AxisAlignedBox3d)

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

    Contain(ref AxisAlignedBox3d)

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

    Contain(Vector3d)

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

    Contain(ref Vector3d)

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

    Contains(AxisAlignedBox3d)

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

    Contains(ref AxisAlignedBox3d)

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

    Contains(Vector3d)

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

    Contains(ref Vector3d)

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

    Contract(Double)

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

    Contracted(Double)

    Declaration
    public AxisAlignedBox3d Contracted(double fRadius)
    Parameters
    Type Name Description
    Double fRadius
    Returns
    Type Description
    AxisAlignedBox3d

    Corner(Int32)

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

    Distance(Vector3d)

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

    DistanceSquared(ref AxisAlignedBox3d)

    Declaration
    public double DistanceSquared(ref AxisAlignedBox3d box2)
    Parameters
    Type Name Description
    AxisAlignedBox3d box2
    Returns
    Type Description
    Double

    DistanceSquared(Vector3d)

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

    Equals(AxisAlignedBox3d)

    Declaration
    public bool Equals(AxisAlignedBox3d other)
    Parameters
    Type Name Description
    AxisAlignedBox3d other
    Returns
    Type Description
    Boolean

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    Expand(Double)

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

    Expanded(Double)

    Declaration
    public AxisAlignedBox3d Expanded(double fRadius)
    Parameters
    Type Name Description
    Double fRadius
    Returns
    Type Description
    AxisAlignedBox3d

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    Intersect(AxisAlignedBox3d)

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

    Intersects(AxisAlignedBox3d)

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

    MoveMin(Vector3d)

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

    MoveMin(Double, Double, Double)

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

    Point(Int32, Int32, Int32)

    Returns point on face/edge/corner. For each coord value neg==min, 0==center, pos==max

    Declaration
    public Vector3d Point(int xi, int yi, int zi)
    Parameters
    Type Name Description
    Int32 xi
    Int32 yi
    Int32 zi
    Returns
    Type Description
    Vector3d

    Scale(Double, Double, Double)

    Declaration
    public void Scale(double sx, double sy, double sz)
    Parameters
    Type Name Description
    Double sx
    Double sy
    Double sz

    SignedDistance(Vector3d)

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

    ToString()

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

    Translate(Vector3d)

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

    Operators

    Equality(AxisAlignedBox3d, AxisAlignedBox3d)

    Declaration
    public static bool operator ==(AxisAlignedBox3d a, AxisAlignedBox3d b)
    Parameters
    Type Name Description
    AxisAlignedBox3d a
    AxisAlignedBox3d b
    Returns
    Type Description
    Boolean

    Explicit(AxisAlignedBox3d to AxisAlignedBox3f)

    Declaration
    public static explicit operator AxisAlignedBox3f(AxisAlignedBox3d v)
    Parameters
    Type Name Description
    AxisAlignedBox3d v
    Returns
    Type Description
    AxisAlignedBox3f

    Implicit(AxisAlignedBox3f to AxisAlignedBox3d)

    Declaration
    public static implicit operator AxisAlignedBox3d(AxisAlignedBox3f v)
    Parameters
    Type Name Description
    AxisAlignedBox3f v
    Returns
    Type Description
    AxisAlignedBox3d

    Inequality(AxisAlignedBox3d, AxisAlignedBox3d)

    Declaration
    public static bool operator !=(AxisAlignedBox3d a, AxisAlignedBox3d b)
    Parameters
    Type Name Description
    AxisAlignedBox3d a
    AxisAlignedBox3d b
    Returns
    Type Description
    Boolean

    Implements

    System.IComparable<T>
    System.IEquatable<T>
    In This Article
    Back to top ViRGIS VR GIS