# Class Plane¶

## Class Documentation¶

class Plane : public Surface

A plane given by a point x0 and two axes v1 and v2 with normal n = v1.cross(v2) or the normal n. Note that distance is negative on one side of the plane and positive on the other, depending on the orientation of the normal vector.

Public Functions

Plane(const Vector3d &_x0, const Vector3d &v1, const Vector3d &v2)
Plane(const Vector3d &_x0, const Vector3d &_n)
double distance(const Vector3d &point) const

Returns the distance of a point to the surface. Negative on the one side, positive on the other. For closed surfaces it is negative on the inside.

Vector3d normal(const Vector3d &point) const

Returns the normal to the surface at a point. Negative on the one side, positive on the other. For closed surfaces it is negative on the inside.

std::string getDescription() const
size_t addReference() const
size_t removeReference() const
int removeReferenceNoDelete() const
size_t getReferenceCount() const

Protected Attributes

size_t _referenceCount