Search Results for

    Show / Hide Table of Contents

    Class DistRay3Segment3

    Distance between ray and segment ported from WildMagic5

    Inheritance
    Object
    DistRay3Segment3
    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 DistRay3Segment3

    Constructors

    DistRay3Segment3(Ray3d, Segment3d)

    Declaration
    public DistRay3Segment3(Ray3d rayIn, Segment3d segmentIn)
    Parameters
    Type Name Description
    Ray3d rayIn
    Segment3d segmentIn

    Fields

    DistanceSquared

    Declaration
    public double DistanceSquared
    Field Value
    Type Description
    Double

    RayClosest

    Declaration
    public Vector3d RayClosest
    Field Value
    Type Description
    Vector3d

    RayParameter

    Declaration
    public double RayParameter
    Field Value
    Type Description
    Double

    SegmentClosest

    Declaration
    public Vector3d SegmentClosest
    Field Value
    Type Description
    Vector3d

    SegmentParameter

    Declaration
    public double SegmentParameter
    Field Value
    Type Description
    Double

    Properties

    Ray

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

    Segment

    Declaration
    public Segment3d Segment { get; set; }
    Property Value
    Type Description
    Segment3d

    Methods

    Compute()

    Declaration
    public DistRay3Segment3 Compute()
    Returns
    Type Description
    DistRay3Segment3

    Get()

    Declaration
    public double Get()
    Returns
    Type Description
    Double

    GetSquared()

    Declaration
    public double GetSquared()
    Returns
    Type Description
    Double

    MinDistance(Ray3d, Segment3d)

    Declaration
    public static double MinDistance(Ray3d r, Segment3d s)
    Parameters
    Type Name Description
    Ray3d r
    Segment3d s
    Returns
    Type Description
    Double

    MinDistanceSegmentParam(Ray3d, Segment3d)

    Declaration
    public static double MinDistanceSegmentParam(Ray3d r, Segment3d s)
    Parameters
    Type Name Description
    Ray3d r
    Segment3d s
    Returns
    Type Description
    Double

    SquaredDistance(ref Ray3d, ref Segment3d, out Double, out Double)

    compute w/o allocating temporaries/etc

    Declaration
    public static double SquaredDistance(ref Ray3d ray, ref Segment3d segment, out double rayT, out double segT)
    Parameters
    Type Name Description
    Ray3d ray
    Segment3d segment
    Double rayT
    Double segT
    Returns
    Type Description
    Double
    In This Article
    Back to top ViRGIS VR GIS