geomc 1.0
A c++ linear algebra template library
Loading...
Searching...
No Matches
SimplexProjection< T, N > Struct Template Reference

Public Member Functions

 SimplexProjection (const Simplex< T, N > &s, Vec< T, N > p, ProjectionOp op, SimplexFaces check_faces=SimplexFaces::ALL)
distance () const
Vec< T, N > normal_direction ()
 Compute a direction normal to the projected face.
Simplex< T, N > projected_face () const
 Extract the face to which p projects.
Vec< T, N > projected_point () const

Public Attributes

SimplexFaces check_faces
ProjectionOp op
Vec< T, N > p
ProjectionResult< T, N > result
const Simplex< T, N > & simplex

Protected Member Functions

bool _find_nearest_face (const SimplexFace< T, N > &face, Vec< T, N > to_p, int depth)

Member Function Documentation

◆ normal_direction()

template<typename T, index_t N>
Vec< T, N > normal_direction ( )
inline

Compute a direction normal to the projected face.

In some cases, there may be more numerically stable methods for obtaining the normal than subtracting the projected point from the original point.


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