Class frame_t¶
Defined in File frame.hpp
Class Documentation¶
-
class frame_t¶
Public Functions
-
inline f_t handness() const noexcept¶
Tests the handness of the frame. Returns +1 for RH systems and -1 for LH systems.
-
inline auto flip() const noexcept¶
Returns a flipped frame (flipped t,b,n)
-
inline auto operator-() const noexcept¶
Returns a flipped frame (flipped t,b,n)
-
inline auto flip_handness() const noexcept¶
Returns a frame with flipped handness (flipped bitangent)
-
template<std::size_t W>
inline auto to_local(const pqvec3_w_t<W> &v) const noexcept¶ Vectorized 8x transform to local space. Input in metres.
Public Static Functions
-
static inline frame_t canonical() noexcept¶
Returns the canonical frame: normal direction aligns with z axis, and tangent and bitangent with x and y axes, respectively.
-
inline f_t handness() const noexcept¶