Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
AeonGames::Plane Class Reference

Plane class. More...

#include <aeongames/Plane.hpp>

Collaboration diagram for AeonGames::Plane:
Collaboration graph

Public Member Functions

DLL Plane ()
 Default constructor.
DLL Plane (float aNormalX, float aNormalY, float aNormalZ, float aDistance)
 Construct a plane from a normal vector and distance.
DLL ~Plane ()
 destructor.
DLL const Vector3GetNormal () const
 Get the plane normal vector.
DLL const float & GetDistance () const
 Get the distance from the origin to the plane.

Detailed Description

Plane class.

Definition at line 32 of file Plane.hpp.

Constructor & Destructor Documentation

◆ Plane()

AeonGames::Plane::Plane ( float aNormalX,
float aNormalY,
float aNormalZ,
float aDistance )

Construct a plane from a normal vector and distance.

Parameters
aNormalXX component of the plane normal.
aNormalYY component of the plane normal.
aNormalZZ component of the plane normal.
aDistanceDistance from the origin along the normal.

Definition at line 25 of file Plane.cpp.

Member Function Documentation

◆ GetDistance()

const float & AeonGames::Plane::GetDistance ( ) const

Get the distance from the origin to the plane.

Returns
Const reference to the distance value.

Definition at line 45 of file Plane.cpp.

◆ GetNormal()

const Vector3 & AeonGames::Plane::GetNormal ( ) const

Get the plane normal vector.

Returns
Const reference to the normal vector.

Definition at line 40 of file Plane.cpp.


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