Difference between revisions of "GetRelativeAngle"
no edit summary
imported>SJML Bot (Bot creating condition functions pages.) |
imported>Chesko |
||
Line 1: | Line 1: | ||
Returns a value corresponding to the difference, in degrees, between the angle of the subject and the angle of the target along the specified axis. | |||
== Examples == | |||
If Foo has a Z angle of 115, and Bar has a Z angle of 120, Bar.GetRelativeAngle(Foo, Z) would return 5.0. | |||
If Foo has a Z angle of 90, and Bar has a Z angle of 85, Bar.GetRelativeAngle(Foo, Z) would return 355.0. | |||
== Notes == | |||
* As shown in the example above, this function does not return negative relative angles, it rolls over to 359.9 and counts downward instead. | |||
[[Category:Condition Functions]] | [[Category:Condition Functions]] |