Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: void RayWithCircle(ref EdgeD, ref CircleD, out double, out double)

Declaration

public static void RayWithCircle(
    ref EdgeD ray,
    ref CircleD circle,
    out double lambda1,
    out double lambda2
)

Summary

Finds the points of intersection between a ray and a circle. The resulting lambdas along the ray are sorted in ascending order, so the "first" intersection is always in lambda1 (if any). Lambda may be NaN if there is no intersection (or no "second" intersection).