const class graphics::Point
sys::Obj graphics::Point
@Js
@Serializable { simple=true }
Point models a x,y coordinate.
- defVal
-
const static Point defVal := Point.<ctor>(0.0, 0.0)
Default instance is
0,0
. - equals
-
virtual override Bool equals(Obj? obj)
Return if obj is same Point value.
- fromStr
-
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.
- hash
-
virtual override Int hash()
Return hash of x and y.
- make
-
Construct with x, y.
- makeInt
-
Construct with x, y.
- toStr
-
virtual override Str toStr()
Return
"x y"
- translate
-
Return
x+tx, y+ty
- x
-
const Float x
X coordinate
- y
-
const Float y
Y coordinate