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