QUGaR 0.0.4
|
#include <primitive_funcs_lib.hpp>
Public Member Functions | |
PlaneBase (const Point< dim > &origin, const Point< dim > &normal) | |
Constructs a new plane function. The line is defined by an origin and a normal vector. | |
const Point< dim > & | origin () const |
Gets the origin of the plane. | |
const Point< dim > & | normal () const |
Gets the normal of the plane. | |
Static Protected Member Functions | |
static Point< dim > | get_default_origin () |
Gets the default origin of the plane. It is set to the origin of the Cartesian coordinate system. | |
static Point< dim > | get_default_normal () |
Gets the default normal vector of the plane. It is set to the x-axis. | |
Protected Attributes | |
Point< dim > | origin_ |
Origin of the (levelset) line. | |
Point< dim > | normal_ |
Normal to the (levelset) line. | |
Plane base class.
This is a linear function whose value is zero at a line, and grows linearly (positively or negatively) as you move away from the line.
dim | Parametric dimension. |
qugar::impl::funcs::PlaneBase< dim >::PlaneBase | ( | const Point< dim > & | origin, |
const Point< dim > & | normal ) |
Constructs a new plane function. The line is defined by an origin
and a normal
vector.
|
staticnodiscardprotected |
Gets the default normal vector of the plane. It is set to the x-axis.
|
staticnodiscardprotected |
Gets the default origin of the plane. It is set to the origin of the Cartesian coordinate system.
|
nodiscard |
Gets the normal of the plane.
|
nodiscard |
Gets the origin of the plane.
|
protected |
Normal to the (levelset) line.
|
protected |
Origin of the (levelset) line.