Interface IIntersectableWithRay
- Namespace
 - Stride.Core.Mathematics
 
- Assembly
 - Stride.Core.Mathematics.dll
 
Allows to determine intersections with a Ray.
public interface IIntersectableWithRay
  Methods
Intersects(ref readonly Ray)
Determines if there is an intersection between the current object and a Ray.
bool Intersects(ref readonly Ray ray)
  Parameters
rayRayThe ray to test.
Returns
- bool
 Whether the two objects intersected.
Intersects(ref readonly Ray, out Vector3)
Determines if there is an intersection between the current object and a Ray.
bool Intersects(ref readonly Ray ray, out Vector3 point)
  Parameters
rayRayThe ray to test.
pointVector3When the method completes, contains the point of intersection, or Zero if there was no intersection.
Returns
- bool
 Whether the two objects intersected.
Intersects(ref readonly Ray, out float)
Determines if there is an intersection between the current object and a Ray.
bool Intersects(ref readonly Ray ray, out float distance)
  Parameters
rayRayThe ray to test.
distancefloatWhen the method completes, contains the distance of the intersection, or 0 if there was no intersection.
Returns
- bool
 Whether the two objects intersected.