mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 23:20:01 +00:00
Atan2 and Sqrt
This commit is contained in:
parent
669374ec1a
commit
7857590990
|
@ -679,7 +679,7 @@ CFileLoader::LoadMLOInstance(int id, const char *line)
|
||||||
&scale.x, &scale.y, &scale.z,
|
&scale.x, &scale.y, &scale.z,
|
||||||
&rot.x, &rot.y, &rot.z,
|
&rot.x, &rot.y, &rot.z,
|
||||||
&angle);
|
&angle);
|
||||||
float rad = 2.0f * (PI / 2.0f - atan2(angle, sqrt(1.0f - SQR(angle))));
|
float rad = 2.0f * (PI / 2.0f - Atan2(angle, Sqrt(1.0f - SQR(angle))));
|
||||||
CInstance *inst = CModelInfo::GetMloInstanceStore()->alloc();
|
CInstance *inst = CModelInfo::GetMloInstanceStore()->alloc();
|
||||||
minfo->lastInstance++;
|
minfo->lastInstance++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue