Point
src
@Js
@Serializable { simple=true }
const class Point : Obj
Point models a x,y coordinate.
src
const static Point defVal := Point.<ctor>(0.0, 0.0)
Default instance is 0,0
.
src
virtual override Bool equals(Obj? obj)
Return if obj is same Point value.
src
static new fromStr(Str s, Bool checked := true)
Parse from comma or space separated string. If invalid then throw ParseErr or return null based on checked flag.
src
virtual override Int hash()
Return hash of x and y.
src
new makeInt(Int x, Int y)
Construct with x, y.
src
virtual override Str toStr()
Return "x y"