AngleBetween

From GT-MP
Jump to: navigation, search
AngleBetween
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript

Returns the Angle between two vectors.

Syntax

In C#
Server-Side Function

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to upcoming API changes. New API functions and changes will be released with the next update.
API.angleBetween(Vector3 from, Vector3 to);

Required Arguments

  • from parameter input should be in Vector3 type.
  • to parameter input should be in Vector3 type.


NOTE: This function returns data in double type.

In Javascript
Client-Side Function

API.angleBetween(Vector3 from, Vector3 to);

Required Arguments

  • from parameter input should be in Vector3 type.
  • to parameter input should be in Vector3 type.


NOTE: This function returns data in double type.

Usage example

In C#
Server-Side Function

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to upcoming API changes. New API functions and changes will be released with the next update.
API.angleBetween(Vector3 from, Vector3 to);

In Javascript
Client-Side Function

API.angleBetween(Vector3 from, Vector3 to);

References