A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
EGG::Plane3f Struct Reference

#include <Plane.hh>

Description

Represents a plane in 3D space, expressed with n.dot(x) = d for point x on the plane.

Documentation from Real-Time Collision Detection by Christer Ericson, published by Morgan Kaufmann Publishers, Copyright 2005 Elsevier Inc.

Definition at line 10 of file Plane.hh.

Public Member Functions

 Plane3f (const Vector3f &point, const Vector3f &normal)
 
void set (const Vector3f &point, const Vector3f &normal)
 
bool testPoint (const Vector3f &point) const
 

Public Attributes

Vector3f n
 Plane normal.
 
f32 d
 Negated dot product. n.dot(x) = d => n.dot(x) - d = 0.
 

Constructor & Destructor Documentation

◆ Plane3f()

EGG::Plane3f::Plane3f ( const Vector3f & point,
const Vector3f & normal )
inline0x805AEF6C

Definition at line 15 of file Plane.hh.

Member Function Documentation

◆ set()

void EGG::Plane3f::set ( const Vector3f & point,
const Vector3f & normal )
inline0x805AF048

Definition at line 23 of file Plane.hh.

◆ testPoint()

bool EGG::Plane3f::testPoint ( const Vector3f & point) const
inlinenodiscard0x805AF0F0

Definition at line 29 of file Plane.hh.

Member Data Documentation

◆ d

f32 EGG::Plane3f::d

Negated dot product. n.dot(x) = d => n.dot(x) - d = 0.

Definition at line 34 of file Plane.hh.

◆ n

Vector3f EGG::Plane3f::n

Plane normal.

Definition at line 33 of file Plane.hh.