mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Cleanup.
This commit is contained in:
@@ -282,7 +282,7 @@ void calcMaxBoundingSphere(Sphere& _sphere, const void* _vertices, uint32_t _num
|
||||
}
|
||||
|
||||
bx::vec3Move(_sphere.m_center, center);
|
||||
_sphere.m_radius = sqrtf(maxDistSq);
|
||||
_sphere.m_radius = bx::fsqrt(maxDistSq);
|
||||
}
|
||||
|
||||
void calcMinBoundingSphere(Sphere& _sphere, const void* _vertices, uint32_t _numVertices, uint32_t _stride, float _step)
|
||||
|
||||
@@ -166,16 +166,16 @@ struct Camera
|
||||
|
||||
float direction[3] =
|
||||
{
|
||||
cosf(m_verticalAngle) * sinf(m_horizontalAngle),
|
||||
sinf(m_verticalAngle),
|
||||
cosf(m_verticalAngle) * cosf(m_horizontalAngle),
|
||||
bx::fcos(m_verticalAngle) * bx::fsin(m_horizontalAngle),
|
||||
bx::fsin(m_verticalAngle),
|
||||
bx::fcos(m_verticalAngle) * bx::fcos(m_horizontalAngle),
|
||||
};
|
||||
|
||||
float right[3] =
|
||||
{
|
||||
sinf(m_horizontalAngle - bx::piHalf),
|
||||
bx::fsin(m_horizontalAngle - bx::piHalf),
|
||||
0,
|
||||
cosf(m_horizontalAngle - bx::piHalf),
|
||||
bx::fcos(m_horizontalAngle - bx::piHalf),
|
||||
};
|
||||
|
||||
float up[3];
|
||||
|
||||
Reference in New Issue
Block a user