Nasal library/geo: Difference between revisions

Jump to navigation Jump to search
Doc normdeg[180]()
(Doc normdeg[180]())
Line 347: Line 347:


=== normdeg() ===
=== normdeg() ===
{{Nasal doc
|syntax = geo.normdeg(angle);
|text = Normalizes an angle to be in the range 0–360.
|param1 = angle
|param1text = Mandatory angle to normalize.
|example1 = print(geo.normdeg(45)); # print "45"
|example2 = print(geo.normdeg(-90)); # print "270"
|example3 = print(geo.normdeg(1060)); # print "340"
|example3 = print(geo.normdeg(-653)); # print "67"
}}
=== normdeg180() ===
=== normdeg180() ===
{{Nasal doc
|syntax = geo.normdeg180(angle);
|text = Normalizes an angle to be in the range -180–180.
|param1 = angle
|param1text = Mandatory angle to normalize.
|example1 = print(geo.normdeg180(96)); # print "96"
|example2 = print(geo.normdeg180(-96)); # print "-96"
|example3 = print(geo.normdeg180(256)); # print "-104"
|example4 = print(geo.normdeg180(-209)); # print "151"
}}
=== put_model() ===
=== put_model() ===
=== tile_index() ===
=== tile_index() ===

Navigation menu