Quaternion_T<T>::Quaternion_T(Vector_T<T, 3> const & vec, T s) noexcept { this->x() = vec.x(); this->y() = vec.y(); this->z() = vec.z(); this->w() = s; }
bool Rect_T<T>::PtInRect(Vector_T<T, 2> const & pt) const { return MathLib::in_bound(pt.x(), this->left(), this->right()) && MathLib::in_bound(pt.y(), this->top(), this->bottom()); }
void Quaternion_T<T>::v(Vector_T<T, 3> const & rhs) noexcept { this->x() = rhs.x(); this->y() = rhs.y(); this->z() = rhs.z(); }
void Plane_T<T>::Normal(Vector_T<T, 3> const & rhs) { this->a() = rhs.x(); this->b() = rhs.y(); this->c() = rhs.z(); }