Point.init

Initializes @p to the given @x and @y coordinates.

It's safe to call this function multiple times.

class Point
init
(
float x
,
float y
)

Parameters

x float

the X coordinate

y float

the Y coordinate

Return Value

Type: Point

the initialized point

Meta