Depiction Engine For Unity 2023.0 (Alpha)
Loading...
Searching...
No Matches
DepictionEngine.PlaneDouble Class Reference

Representation of a plane in 3D space. More...

Public Member Functions

 PlaneDouble (Vector3Double inNormal, Vector3Double inPoint)
 
bool Raycast (RayDouble ray, out double enter)
 Intersects a ray with the plane.
 

Detailed Description

Representation of a plane in 3D space.

Member Function Documentation

◆ Raycast()

bool DepictionEngine.PlaneDouble.Raycast ( RayDouble  ray,
out double  enter 
)

Intersects a ray with the plane.

This function sets enter to the distance along the ray, where it intersects the plane. If the ray is parallel to the plane, function returns false and sets enter to zero. If the ray is pointing in the opposite direction than the plane, function returns false and sets enter to the distance along the ray (negative value).

Parameters
ray
enter
Returns

The documentation for this class was generated from the following file: