Declaration of 2D and 3D point/vector classes with templated precision. Used with DCEL tools.
More...
|
| template<typename T > |
| constexpr Vec2T< T > | operator* (const T &s, const Vec2T< T > &a_other) noexcept |
| | Multiplication operator in the form s*Vec2T.
|
| |
| template<typename T > |
| constexpr Vec2T< T > | operator/ (const T &s, const Vec2T< T > &a_other) noexcept |
| | Division operator in the form s*Vec2T.
|
| |
| template<typename T > |
| Vec2T< T > | min (const Vec2T< T > &u, const Vec2T< T > &v) noexcept |
| | Minimum function. Returns new vector with component-wise minimums.
|
| |
| template<typename T > |
| Vec2T< T > | max (const Vec2T< T > &u, const Vec2T< T > &v) noexcept |
| | Maximum function. Returns new vector with component-wise minimums.
|
| |
| template<typename T > |
| T | dot (const Vec2T< T > &u, const Vec2T< T > &v) noexcept |
| | Dot product function.
|
| |
| template<typename T > |
| T | length (const Vec2T< T > &v) noexcept |
| | Length function.
|
| |
| template<class R , typename T > |
| constexpr Vec3T< T > | operator* (const R &s, const Vec3T< T > &u) noexcept |
| | Multiplication operator.
|
| |
| template<typename T > |
| constexpr Vec3T< T > | operator* (const Vec3T< T > &u, const Vec3T< T > &v) noexcept |
| | Multiplication operator.
|
| |
| template<class R , typename T > |
| constexpr Vec3T< T > | operator/ (const R &s, const Vec3T< T > &u) noexcept |
| | Division operator.
|
| |
| template<typename T > |
| constexpr Vec3T< T > | min (const Vec3T< T > &u, const Vec3T< T > &v) noexcept |
| | Minimum function. Returns new vector with component-wise minimums.
|
| |
| template<typename T > |
| constexpr Vec3T< T > | max (const Vec3T< T > &u, const Vec3T< T > &v) noexcept |
| | Maximum function. Returns new vector with component-wise minimums.
|
| |
| template<typename T > |
| constexpr T | dot (const Vec3T< T > &u, const Vec3T< T > &v) noexcept |
| | Dot product function.
|
| |
| template<typename T > |
| constexpr T | length (const Vec3T< T > &v) noexcept |
| | Length function.
|
| |
Declaration of 2D and 3D point/vector classes with templated precision. Used with DCEL tools.
- Author
- Robert Marskar