Class IntrRay3AxisAlignedBox3
Inheritance
IntrRay3AxisAlignedBox3
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class IntrRay3AxisAlignedBox3
Constructors
IntrRay3AxisAlignedBox3(Ray3d, AxisAlignedBox3d)
Declaration
public IntrRay3AxisAlignedBox3(Ray3d r, AxisAlignedBox3d b)
Parameters
Fields
Point0
Declaration
Field Value
Point1
Declaration
Field Value
Quantity
Declaration
Field Value
RayParam0
Declaration
Field Value
RayParam1
Declaration
Field Value
Result
Declaration
public IntersectionResult Result
Field Value
Type
Declaration
public IntersectionType Type
Field Value
Properties
Box
Declaration
public AxisAlignedBox3d Box { get; set; }
Property Value
IsSimpleIntersection
Declaration
public bool IsSimpleIntersection { get; }
Property Value
Ray
Declaration
public Ray3d Ray { get; set; }
Property Value
Methods
Compute()
Declaration
public IntrRay3AxisAlignedBox3 Compute()
Returns
Find()
Declaration
Returns
FindRayIntersectT(ref Ray3d, ref AxisAlignedBox3d, out Double)
Find intersection of ray with AABB, without having to construct any new classes.
Returns ray T-value of first intersection (or double.MaxVlaue on miss)
Declaration
public static bool FindRayIntersectT(ref Ray3d ray, ref AxisAlignedBox3d box, out double RayParam)
Parameters
Returns
Intersects(ref Ray3d, ref AxisAlignedBox3d, Double)
test if ray intersects box.
expandExtents allows you to scale box for hit-testing purposes.
Declaration
public static bool Intersects(ref Ray3d ray, ref AxisAlignedBox3d box, double expandExtents = 0)
Parameters
Returns
Test()
Declaration
Returns