#include <plane.h>
Public Member Functions | |
plane () | |
void | setLabel (long l) |
long | getLabel () |
void | setNormal (double x, double y, double z) |
void | setNormal (vector3d n) |
vector3d | getNormal () |
double * | getParameters () |
void | setOrigin (double x, double y, double z) |
void | setOrigin (vector3d o) |
vector3d | getOrigin () |
void | setDrawn (bool d) |
bool | isDrawn () |
void | offset (double distance) |
Attributes and methods for a plane in space Plane normal and origin is stored
plane::plane | ( | ) |
Standard Constructor creates a xy-plane at the global origin
void plane::setLabel | ( | long | l | ) |
Sets the label of the plane to label
long plane::getLabel | ( | ) |
Returns the label of the plane
void plane::setNormal | ( | double | x, | |
double | y, | |||
double | z | |||
) |
Sets the normal of the plane
void plane::setNormal | ( | vector3d | n | ) |
Sets the normal of the plane
vector3d plane::getNormal | ( | ) |
Returns the normal of the plane
double * plane::getParameters | ( | ) |
void plane::setOrigin | ( | double | x, | |
double | y, | |||
double | z | |||
) |
Sets the origin of the plane
void plane::setOrigin | ( | vector3d | o | ) |
Sets the origin of the plane
vector3d plane::getOrigin | ( | ) |
Returns the origin of the plane
void plane::setDrawn | ( | bool | d | ) |
Defines wether a plane should be drawn
bool plane::isDrawn | ( | ) |
Returns wether a plane should be drawn
void plane::offset | ( | double | distance | ) |
Moves the plane in normal direction