Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Vector2.Angle

static function Angle(from: Vector2, to: Vector2): float;
static float Angle(Vector2 from, Vector2 to);
static def Angle(from as Vector2, to as Vector2) as float

Description

Returns the angle in degrees between from and to.