mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-21 18:59:12 +00:00
Switched CQuaternion from XYZW to WXYZ, added new conversion functions (Quats->Eulers, Degs<->Rads)
This commit is contained in:
@@ -20,6 +20,16 @@ float Distance(const CVector3f& A, const CVector3f& B)
|
||||
Pow(B.z - A.z, 2.f) );
|
||||
}
|
||||
|
||||
float DegreesToRadians(float deg)
|
||||
{
|
||||
return deg * skPi / 180.f;
|
||||
}
|
||||
|
||||
float RadiansToDegrees(float rad)
|
||||
{
|
||||
return rad * 180.f / skPi;
|
||||
}
|
||||
|
||||
std::pair<bool,float> RayPlaneIntersecton(const CRay& ray, const CPlane& plane)
|
||||
{
|
||||
// Code based on ray/plane intersect code from Ogre
|
||||
|
||||
Reference in New Issue
Block a user