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
ray
RayThe 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
ray
RayThe ray to test.
point
Vector3When 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
ray
RayThe ray to test.
distance
floatWhen the method completes, contains the distance of the intersection, or 0 if there was no intersection.
Returns
- bool
Whether the two objects intersected.