
Point represents a coordinate in the display space.
Slots
- def
-
static Point def := Point.?()
Default instance is 0, 0.
- equals
-
Return if obj is same Point value.
- fromStr
-
static Point fromStr(Str s, Bool checked := true)
Parse from string. If invalid and checked is true then throw ParseErr otherwise return null.
- hash
-
override Int hash()
Return hash of x and y.
- make
-
new make(Int x := 0, Int y := 0)
Construct with optional x, y.
- toStr
-
override Str toStr()
Return
"x,y"
- translate
-
Return
x+tx, y+ty
- x
-
const Int x
X coordinate
- y
-
const Int y
Y coordinate