15 #ifndef INCLUDED_IMATHVECALGO_H
16 #define INCLUDED_IMATHVECALGO_H
21 IMATH_INTERNAL_NAMESPACE_HEADER_ENTER
34 IMATH_CONSTEXPR14
inline Vec
37 Vec sNormalized =
s.normalized();
38 return sNormalized * (sNormalized ^
t);
62 return s -
typename Vec::BaseType (2) * (
s -
project (
t,
s));
74 typename Vec::BaseType neardot = (
v0 - p).length2();
75 typename Vec::BaseType tmp = (
v1 - p).length2();
83 tmp = (
v2 - p).length2();
94 IMATH_INTERNAL_NAMESPACE_HEADER_EXIT
96 #endif // INCLUDED_IMATHVECALGO_H
GLsizei const GLfloat * value
GLfloat GLfloat GLfloat v2
UT_Vector2T< T > project(const UT_Vector2T< T > &u, const UT_Vector2T< T > &v)
The orthogonal projection of a vector u onto a vector v.
#define IMATH_ENABLE_IF(...)
IMATH_INTERNAL_NAMESPACE_HEADER_ENTER IMATH_CONSTEXPR14 Vec closestVertex(const Vec &v0, const Vec &v1, const Vec &v2, const Vec &p) IMATH_NOEXCEPT