Пример #1
0
	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;
	}
Пример #2
0
	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());
	}
Пример #3
0
	void Quaternion_T<T>::v(Vector_T<T, 3> const & rhs) noexcept
	{
		this->x() = rhs.x();
		this->y() = rhs.y();
		this->z() = rhs.z();
	}
Пример #4
0
	void Plane_T<T>::Normal(Vector_T<T, 3> const & rhs)
	{
		this->a() = rhs.x();
		this->b() = rhs.y();
		this->c() = rhs.z();
	}