Search Results for

    Show / Hide Table of Contents

    Class IntersectionUtil

    Inheritance
    Object
    IntersectionUtil
    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 static class IntersectionUtil

    Methods

    Intersects(Vector3d, Vector3d, Vector3d, Vector3d, Vector3d)

    Declaration
    public static bool Intersects(Vector3d rayOrigin, Vector3d rayDirection, Vector3d V0, Vector3d V1, Vector3d V2)
    Parameters
    Type Name Description
    Vector3d rayOrigin
    Vector3d rayDirection
    Vector3d V0
    Vector3d V1
    Vector3d V2
    Returns
    Type Description
    Boolean

    LineSphere(ref Vector3d, ref Vector3d, ref Vector3d, Double)

    Declaration
    public static LinearIntersection LineSphere(ref Vector3d lineOrigin, ref Vector3d lineDirection, ref Vector3d sphereCenter, double sphereRadius)
    Parameters
    Type Name Description
    Vector3d lineOrigin
    Vector3d lineDirection
    Vector3d sphereCenter
    Double sphereRadius
    Returns
    Type Description
    LinearIntersection

    LineSphere(ref Vector3d, ref Vector3d, ref Vector3d, Double, ref LinearIntersection)

    Intersect ray with sphere and return intersection info (# hits, ray parameters)

    Declaration
    public static bool LineSphere(ref Vector3d lineOrigin, ref Vector3d lineDirection, ref Vector3d sphereCenter, double sphereRadius, ref LinearIntersection result)
    Parameters
    Type Name Description
    Vector3d lineOrigin
    Vector3d lineDirection
    Vector3d sphereCenter
    Double sphereRadius
    LinearIntersection result
    Returns
    Type Description
    Boolean

    LineSphereTest(ref Vector3d, ref Vector3d, ref Vector3d, Double)

    Test if line intersects sphere

    Declaration
    public static bool LineSphereTest(ref Vector3d lineOrigin, ref Vector3d lineDirection, ref Vector3d sphereCenter, double sphereRadius)
    Parameters
    Type Name Description
    Vector3d lineOrigin
    Vector3d lineDirection
    Vector3d sphereCenter
    Double sphereRadius
    Returns
    Type Description
    Boolean

    RaySphere(ref Vector3d, ref Vector3d, ref Vector3d, Double)

    Declaration
    public static LinearIntersection RaySphere(ref Vector3d rayOrigin, ref Vector3d rayDirection, ref Vector3d sphereCenter, double sphereRadius)
    Parameters
    Type Name Description
    Vector3d rayOrigin
    Vector3d rayDirection
    Vector3d sphereCenter
    Double sphereRadius
    Returns
    Type Description
    LinearIntersection

    RaySphere(ref Vector3d, ref Vector3d, ref Vector3d, Double, ref LinearIntersection)

    Intersect ray with sphere and return intersection info (# hits, ray parameters)

    Declaration
    public static bool RaySphere(ref Vector3d rayOrigin, ref Vector3d rayDirection, ref Vector3d sphereCenter, double sphereRadius, ref LinearIntersection result)
    Parameters
    Type Name Description
    Vector3d rayOrigin
    Vector3d rayDirection
    Vector3d sphereCenter
    Double sphereRadius
    LinearIntersection result
    Returns
    Type Description
    Boolean

    RaySphereTest(ref Vector3d, ref Vector3d, ref Vector3d, Double)

    Test if ray intersects sphere

    Declaration
    public static bool RaySphereTest(ref Vector3d rayOrigin, ref Vector3d rayDirection, ref Vector3d sphereCenter, double sphereRadius)
    Parameters
    Type Name Description
    Vector3d rayOrigin
    Vector3d rayDirection
    Vector3d sphereCenter
    Double sphereRadius
    Returns
    Type Description
    Boolean
    In This Article
    Back to top ViRGIS VR GIS