Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

Rect.PointToNormalized

Switch to Manual
public static function PointToNormalized(rectangle: Rect, point: Vector2): 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.