Astra SDK
v2.1.3
|
3D geometric plane 更多...
#include <Body.hpp>
Public 成员函数 | |
Plane () | |
Default constructs a plane that passes though origin, has a zero-length normal, and is considered degenerate | |
float | a () const |
Gets the A coefficient | |
float | b () const |
Gets the B coefficient | |
float | c () const |
Gets the C coefficient | |
float | d () const |
Gets the D coefficent (signed distance) | |
const Vector3f & | normal () const |
Gets the plane normal | |
bool | is_degenerate () const |
Returns whether than plane is considered degenerate (invalid) | |
友元 | |
class | FloorInfo |
3D geometric plane
Represents a 3D plane.
The normal of the plane is defined to be (A, B, C). The plane coefficients and real world coordinates (x, y, and z) are related by the plane equation:
Ax + By + Cz + D = 0