Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

Rect.PointToNormalized

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

Parameters

rectangle Rectangle to get normalized coordinates inside.
point A point inside the rectangle to get normalized coordinates for.

Description

Returns the normalized coordinates cooresponding the the point.