Tile - YVector3 - Angle – Ylands

From Bohemia Interactive Community
Revision as of 11:17, 12 November 2021 by YlandsClassyBot (talk | contribs)
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.