Class IntersectionUtil
Inheritance
IntersectionUtil
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
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
Returns