34 template < std::
size_t N >
49 k = p_ab[0] * ( c_ab[1] - c_ac[1] ) + p_ab[1] * ( c_ac[0] - c_ab[0] );
51 k /= ( p_ab[0] * p_ac[1] - p_ac[0] * p_ab[1] );
69 template < std::
size_t N >
72 return triangle< N >{ t[0] * scales, t[1] * scales, t[2] * scales };
MIT License.
Definition: impl.h:31
constexpr vector< 3 > normal_of(triangle< 3 > const &tri)
Definition: triangle.h:56
constexpr point< N > point_cast(vector< N > const &v)
Definition: point.h:61
constexpr triangle< N > scale(triangle< N > const &t, point< N > const &scales)
Definition: triangle.h:70
point< 3 > get_triangle_sphere_center(triangle< 3 > const &tri)
Definition: triangle.h:37
constexpr vector< 3 > cross_product(vector< 3 > const &a, vector< 3 > const &b)
Calculates cross product between points A and B.
Definition: vector.h:66
constexpr Derived normalized(vec_point_base< Derived, N > const &a)
Calculates normalized version of A, this means that length(A) equals to 1.
Definition: vec_point_base.h:211
constexpr point< 3 > transform(point< 3 > const &a, pose const &transformation)
Point A is rotated based on 'transformation' orientation and than moved based on 'transformation' pos...
Definition: pose.h:140
constexpr vector< N > vector_cast(point< N > const &p)
Definition: point.h:67
represents orientation and position in 3D space
Definition: pose.h:55