FdkBaseLib 2.1.1
All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
fdk::Plane< T > Class Template Reference

A 3D plane in normalized form. More...

#include <Plane.h>

Public Member Functions

 Plane (const Vec3< T > &n, const Vec3< T > &p)
 Define a plane from a normal and a point on the plane.
 
 Plane (const Vec3< T > &p0, const Vec3< T > &p1, const Vec3< T > &p2)
 Construct a plane from three points on the plane.
 
distance (const Vec3< T > &p) const
 Return the signed distance between a point and the plane.
 
Plane transform (const Mat4< T > &m) const
 Transform the plane by matrix m.
 

Public Attributes

Vec3< T > normal
 The normal to the plane.
 
d
 The distance from the plane to the origin.
 

Detailed Description

template<class T>
class fdk::Plane< T >

A 3D plane in normalized form.



©2024 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.foundry.com