Tile - YVector3 - Angle – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:


==== a ====
==== a ====
Vector A


==== b ====
==== b ====
Vector B


=== Returns ===
=== Returns ===


'''number'''
'''number'''
=== Availability ===
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]], [[Ylands:Tile Availability - Custom Controller|Custom Controller]]


=== Description ===
=== Description ===

Revision as of 11:17, 12 November 2021

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.