Osiris/API/GetAngleTo

From Divinity Engine Wiki
Revision as of 15:44, 31 January 2018 by Tinkerer (talk | contribs)
Jump to: navigation, search
Full Definition(s)
  • query GetAngleTo([in](REAL)_x0, [in](REAL)_z0, [in](REAL)_x1, [in](REAL)_z1, [out](INTEGER)_Angle)
Description

Returns the angle around the Y-axis between two points in degrees.

Return Values
  • Success/Failure: Always succeeds.
  • _Angle: The angle between (_x0, _z0) and (x1, z1) around the Y-axis relative to the X-axis.
Notes
  • Unlike with GetRotation, the result of this call is has no offset relative to the X-axis.
  • The returned angle is in the interval [-180, 180].
See Also