mirror of
https://github.com/halpz/re3.git
synced 2025-07-26 06:22:48 +00:00
work on CAutomobile
This commit is contained in:
@ -22,7 +22,7 @@ public:
|
||||
z = v.z;
|
||||
}
|
||||
// (0,1,0) means no rotation. So get right vector and its atan
|
||||
float Heading(void) const { return Atan2(-x, y); }
|
||||
float Heading(void) const { return x == 0.0f && y == 0.0f ? 0.0f : Atan2(-x, y); }
|
||||
float Magnitude(void) const { return Sqrt(x*x + y*y + z*z); }
|
||||
float MagnitudeSqr(void) const { return x*x + y*y + z*z; }
|
||||
float Magnitude2D(void) const { return Sqrt(x*x + y*y); }
|
||||
|
Reference in New Issue
Block a user