Search Results for

    Show / Hide Table of Contents

    Class IntrRay3AxisAlignedBox3

    Inheritance
    Object
    IntrRay3AxisAlignedBox3
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: g3
    Assembly: cs.temp.dll.dll
    Syntax
    public class IntrRay3AxisAlignedBox3

    Constructors

    IntrRay3AxisAlignedBox3(Ray3d, AxisAlignedBox3d)

    Declaration
    public IntrRay3AxisAlignedBox3(Ray3d r, AxisAlignedBox3d b)
    Parameters
    Type Name Description
    Ray3d r
    AxisAlignedBox3d b

    Fields

    Point0

    Declaration
    public Vector3d Point0
    Field Value
    Type Description
    Vector3d

    Point1

    Declaration
    public Vector3d Point1
    Field Value
    Type Description
    Vector3d

    Quantity

    Declaration
    public int Quantity
    Field Value
    Type Description
    Int32

    RayParam0

    Declaration
    public double RayParam0
    Field Value
    Type Description
    Double

    RayParam1

    Declaration
    public double RayParam1
    Field Value
    Type Description
    Double

    Result

    Declaration
    public IntersectionResult Result
    Field Value
    Type Description
    IntersectionResult

    Type

    Declaration
    public IntersectionType Type
    Field Value
    Type Description
    IntersectionType

    Properties

    Box

    Declaration
    public AxisAlignedBox3d Box { get; set; }
    Property Value
    Type Description
    AxisAlignedBox3d

    IsSimpleIntersection

    Declaration
    public bool IsSimpleIntersection { get; }
    Property Value
    Type Description
    Boolean

    Ray

    Declaration
    public Ray3d Ray { get; set; }
    Property Value
    Type Description
    Ray3d

    Methods

    Compute()

    Declaration
    public IntrRay3AxisAlignedBox3 Compute()
    Returns
    Type Description
    IntrRay3AxisAlignedBox3

    Find()

    Declaration
    public bool Find()
    Returns
    Type Description
    Boolean

    FindRayIntersectT(ref Ray3d, ref AxisAlignedBox3d, out Double)

    Find intersection of ray with AABB, without having to construct any new classes. Returns ray T-value of first intersection (or double.MaxVlaue on miss)

    Declaration
    public static bool FindRayIntersectT(ref Ray3d ray, ref AxisAlignedBox3d box, out double RayParam)
    Parameters
    Type Name Description
    Ray3d ray
    AxisAlignedBox3d box
    Double RayParam
    Returns
    Type Description
    Boolean

    Intersects(ref Ray3d, ref AxisAlignedBox3d, Double)

    test if ray intersects box. expandExtents allows you to scale box for hit-testing purposes.

    Declaration
    public static bool Intersects(ref Ray3d ray, ref AxisAlignedBox3d box, double expandExtents = 0)
    Parameters
    Type Name Description
    Ray3d ray
    AxisAlignedBox3d box
    Double expandExtents
    Returns
    Type Description
    Boolean

    Test()

    Declaration
    public bool Test()
    Returns
    Type Description
    Boolean
    In This Article
    Back to top ViRGIS VR GIS