@Js
@Serializable {
simple=true
collection=false
}
Point represents a coordinate in the display space.
Slots
- defValSource
-
const static Point defVal := Point(0, 0)
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
-
Construct with 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