Kanzi  3.9.7
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

kanzi::PlaneRayIntersection::PlaneRayIntersection ( )
inline

Default constructor.

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

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

float kanzi::PlaneRayIntersection::distance

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

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: