mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-08 03:24:08 +00:00
minor stuff
This commit is contained in:
parent
016ebc0b00
commit
95e96c86a1
3 changed files with 15 additions and 4 deletions
|
@ -183,6 +183,17 @@ CQuaternion::Slerp(const CQuaternion &q1, const CQuaternion &q2, float theta, fl
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
CQuaternion::Set(RwV3d *axis, float angle)
|
||||
{
|
||||
float halfCos = Cos(angle*0.5f);
|
||||
float halfSin = Sin(angle*0.5f);
|
||||
x = axis->x*halfSin;
|
||||
y = axis->y*halfSin;
|
||||
z = axis->z*halfSin;
|
||||
w = halfCos;
|
||||
}
|
||||
|
||||
void
|
||||
CQuaternion::Get(RwMatrix *matrix)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue