Kanzi  3.9.6
Kanzi Engine API
kanzi::PlaneRayIntersection Struct Reference

Stores the result of an intersection between a plane and a ray. More...

#include <kanzi/core/math/plane.hpp>

Public Member Functions

 PlaneRayIntersection ()
 Default constructor. More...
 
 PlaneRayIntersection (float dist, Vector3 point)
 Constructor. More...
 

Public Attributes

float distance
 The distance between the point of intersection and the origin of a ray. More...
 
Vector3 intersectionPoint
 The point of intersection between a ray and a plane. More...
 

Detailed Description

Stores the result of an intersection between a plane and a ray.

Constructor & Destructor Documentation

◆ PlaneRayIntersection() [1/2]

kanzi::PlaneRayIntersection::PlaneRayIntersection ( )
inline

Default constructor.

distance=0.0f and intersectionPoint=(0,0,0).

◆ PlaneRayIntersection() [2/2]

kanzi::PlaneRayIntersection::PlaneRayIntersection ( float  dist,
Vector3  point 
)
inline

Constructor.

Parameters
distThe distance between the point of intersection and the origin of a ray.
pointThe Point of intersection between a ray and a plane.

Member Data Documentation

◆ distance

float kanzi::PlaneRayIntersection::distance

The distance between the point of intersection and the origin of a ray.

◆ intersectionPoint

Vector3 kanzi::PlaneRayIntersection::intersectionPoint

The point of intersection between a ray and a plane.


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