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.

Rect.PointToNormalized

static function PointToNormalized(rectangle: Rect, point: Vector2): Vector2;
static Vector2 PointToNormalized(Rect rectangle, Vector2 point);
static def PointToNormalized(rectangle as Rect, point as Vector2) as Vector2

Parameters

rectangleRectangle to get normalized coordinates inside.
pointA point inside the rectangle to get normalized coordinates for.

Description

Returns the normalized coordinates cooresponding the the point.