37 #ifndef INCLUDED_IMATHVECALGO_H 38 #define INCLUDED_IMATHVECALGO_H 60 template <
class Vec> Vec
project (
const Vec &s,
const Vec &t);
68 template <
class Vec> Vec
orthogonal (
const Vec &s,
const Vec &t);
76 template <
class Vec> Vec
reflect (
const Vec &s,
const Vec &t);
97 Vec sNormalized = s.normalized();
98 return sNormalized * (sNormalized ^ t);
112 return s -
typename Vec::BaseType(2) * (s -
project(t, s));
123 typename Vec::BaseType neardot = (v0 - p).length2();
124 typename Vec::BaseType tmp = (v1 - p).length2();
132 tmp = (v2 - p).length2();
Vec3< T > closestVertex(const Vec3< T > &v0, const Vec3< T > &v1, const Vec3< T > &v2, const Line3< T > &l)
Definition: ImathLineAlgo.h:229
Vec orthogonal(const Vec &s, const Vec &t)
Definition: ImathVecAlgo.h:103
Vec project(const Vec &s, const Vec &t)
Definition: ImathVecAlgo.h:95
Definition: ImathBox.h:67
Vec reflect(const Vec &s, const Vec &t)
Definition: ImathVecAlgo.h:110