⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.

Axmol Engine 3.0.0-dff292a
Loading...
Searching...
No Matches
Plane Class Reference

Defines plane @lua NA. More...

#include <Plane.h>

Public Member Functions

 Plane (const Vec3 &p1, const Vec3 &p2, const Vec3 &p3)
 create plane from tree point.
 Plane (const Vec3 &normal, float dist)
 create plane from normal and dist.
 Plane (const Vec3 &normal, const Vec3 &point)
 create plane from normal and a point on plane.
 Plane ()
 create a default plan whose normal is (0, 0, 1), and _dist is 0, xoy plan in fact.
void initPlane (const Vec3 &p1, const Vec3 &p2, const Vec3 &p3)
 init plane from tree point.
void initPlane (const Vec3 &normal, float dist)
 init plane from normal and dist.
void initPlane (const Vec3 &normal, const Vec3 &point)
 init plane from normal and a point on plane.
float dist2Plane (const Vec3 &p) const
 dist to plane, > 0 normal direction
const Vec3getNormal () const
 Gets the plane's normal.
float getDist () const
 Gets the plane's distance to the origin along its normal.
PointSide getSide (const Vec3 &point) const
 Return the side where the point is.

Detailed Description

Defines plane @lua NA.


The documentation for this class was generated from the following file:
  • Plane.h