Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::Plane3D Struct Reference

#include <AdvancedMath.hpp>

Public Attributes

float3 Normal
 
float Distance = 0
 

Detailed Description

A plane in 3D space described by the plane equation:

dot(Normal, Point) + Distance = 0 

Member Data Documentation

◆ Distance

float Diligent::Plane3D::Distance = 0

Distance from the plane to the coordinate system origin along the normal direction:

dot(Normal, Point) = -Distance


O         |   N
*<--------|==>
          |
Note
The distance is measured in the same units as the normal vector.

◆ Normal

float3 Diligent::Plane3D::Normal

Plane normal.

Note
The normal does not have to be normalized as long as it is measured in the same units as Distance.