|
WrapAngle | |||
NewAngle# = WrapAngle(Angle#, AngleIncrement#) | |||
Parameters: Angle# =Current angle value AngleIncrement#=Value that increments the angle parameter |
|||
Returns: NewAngle# = The resulting angle after it's been wrapped within 0 to 359 degrees |
|||
The WrapAngle function adds the Angle and Increment parameter together, returning the resulting angle wrapped to fit within 0 to 359 degrees. Mini Tutorial #1: Showing the use of the WrapAngle function
This example would output.
Mini Tutorial #2: This example displays the Angle# wrapped to 360 degrees as line on the screen.
|
Related Info: | AngleDifference | ATanFull | Cos | CosNewValue | CosRadius | GetAngle2D | RotateToPoint | Sin | SinNewValue | SinRadius | TurnDirection : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |