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