|
GetAngle2D | |
Angle# = GetAngle2D(X1, Y1, X2, Y2) | |
Parameters: X1 = X position of viewer Y1 = Y position of viewer X2 = X position of target Y2 = Y position of target |
|
Returns: Angle# |
|
GetAngle2D returns the angle (in degrees) between two given points. X1 and Y1 defines the position of Point #1 (the viewer), while X2 and Y2 define the position of Point 2 (the target). Mini Tutorial: This example uses the GetAngle2D function to calc the angle between a vector shape and the mouse pointer
|
Related Info: | AngleDifference | CurveAngle | GetDistance2D | RotateToPoint | TurnDirection | WrapAngle : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |