Geogram  Version 1.9.1-rc
A programming library of geometric algorithms
GEO::Plane Struct Reference

A 3D Plane. More...

#include <geogram/basic/geometry.h>

Public Member Functions

 Plane (const vec3 &p1, const vec3 &p2, const vec3 &p3)
 Constructs the plane passing through three points. More...
 
 Plane (const vec3 &p, const vec3 &n)
 Constructs a plane passign through a point and orthogonal to a vector. More...
 
 Plane (double a_in, double b_in, double c_in, double d_in)
 Constructs a plane from the coefficients of its equation.
 
 Plane ()
 Constructs an uninitialized plane.
 
vec3 normal () const
 Gets the normal vector of the plane.
 

Public Attributes

double a
 
double b
 
double c
 
double d
 

Detailed Description

A 3D Plane.

The plane is represented by the coefficients a,b,c,d of its equation \( ax + by + cz + d = 0 \).

Definition at line 607 of file geometry.h.

Constructor & Destructor Documentation

◆ Plane() [1/2]

GEO::Plane::Plane ( const vec3 p1,
const vec3 p2,
const vec3 p3 
)
inline

Constructs the plane passing through three points.

Parameters
[in]p1first point
[in]p2second point
[in]p3third point

Definition at line 615 of file geometry.h.

◆ Plane() [2/2]

GEO::Plane::Plane ( const vec3 p,
const vec3 n 
)
inline

Constructs a plane passign through a point and orthogonal to a vector.

Parameters
[in]pthe point
[in]nthe vector

Definition at line 629 of file geometry.h.


The documentation for this struct was generated from the following file: