SleakEngine 1.0.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
Sleak::Plane Struct Reference

#include <ViewFrustum.hpp>

Public Member Functions

float DistanceToPoint (const Math::Vector3D &p) const
void Normalize ()
 Rescales the plane coefficients so (a, b, c) is unit length.

Public Attributes

float a
float b
float c
float d

Detailed Description

A plane in ax + by + cz + d = 0 form, used as one face of a ViewFrustum.

Definition at line 12 of file ViewFrustum.hpp.

Member Function Documentation

◆ DistanceToPoint()

float Sleak::Plane::DistanceToPoint ( const Math::Vector3D & p) const
inline

Definition at line 15 of file ViewFrustum.hpp.

◆ Normalize()

void Sleak::Plane::Normalize ( )
inline

Rescales the plane coefficients so (a, b, c) is unit length.

Definition at line 20 of file ViewFrustum.hpp.

Member Data Documentation

◆ a

float Sleak::Plane::a

Definition at line 13 of file ViewFrustum.hpp.

◆ b

float Sleak::Plane::b

Definition at line 13 of file ViewFrustum.hpp.

◆ c

float Sleak::Plane::c

Definition at line 13 of file ViewFrustum.hpp.

◆ d

float Sleak::Plane::d

Definition at line 13 of file ViewFrustum.hpp.