Tile - YVector3 - Angle – Ylands

From Bohemia Interactive Community
(Redirected from Ylands:Tile - Vector3 angle)
Jump to navigation Jump to search

Angle(A, B)

YlandsTile-146.png

static angle(a: YVector3, b: YVector3): number;

Parameters

a

Vector A

b

Vector B

Returns

number

Availability

Client, Server, Custom Controller

Description

Returns angle between two vectors.

Notes

  • Returned angle is the smaller of the two possibleangles between used vectors. The result is never greater than 180 degrees.