@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
-
const 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 xX coordinate
- ySource
-
const Int yY coordinate