Click or drag to resize

BoxFIntersects Method (RayF, Single, Single)

Determines whether the given ray intersects the current instance of BoxF.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public bool Intersects(
	ref RayF ray,
	out float scale1,
	out float scale2
)

Parameters

ray
Type: NeoAxisRayF
The ray to check.
scale1
Type: SystemSingle
When the method completes, contains the ray and box intersection min point.
scale2
Type: SystemSingle
When the method completes, contains the ray and box intersection max point.

Return Value

Type: Boolean
True if the given ray intersects the current instance of BoxF; False otherwise.
See Also