Class DistRay3Segment3
Distance between ray and segment
ported from WildMagic5
Inheritance
DistRay3Segment3
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class DistRay3Segment3
Constructors
DistRay3Segment3(Ray3d, Segment3d)
Declaration
public DistRay3Segment3(Ray3d rayIn, Segment3d segmentIn)
Parameters
Fields
DistanceSquared
Declaration
public double DistanceSquared
Field Value
RayClosest
Declaration
public Vector3d RayClosest
Field Value
RayParameter
Declaration
public double RayParameter
Field Value
SegmentClosest
Declaration
public Vector3d SegmentClosest
Field Value
SegmentParameter
Declaration
public double SegmentParameter
Field Value
Properties
Ray
Declaration
public Ray3d Ray { get; set; }
Property Value
Segment
Declaration
public Segment3d Segment { get; set; }
Property Value
Methods
Compute()
Declaration
public DistRay3Segment3 Compute()
Returns
Get()
Declaration
Returns
GetSquared()
Declaration
public double GetSquared()
Returns
MinDistance(Ray3d, Segment3d)
Declaration
public static double MinDistance(Ray3d r, Segment3d s)
Parameters
Returns
MinDistanceSegmentParam(Ray3d, Segment3d)
Declaration
public static double MinDistanceSegmentParam(Ray3d r, Segment3d s)
Parameters
Returns
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
Returns