const class graphics::Point

sys::Obj
  graphics::Point

@Js
@Serializable { simple=true }

Source

Point models a x,y coordinate.

defVal

const static Point defVal := Point.<ctor>(0.0, 0.0)

Source

Default instance is 0,0.

equals

virtual override Bool equals(Obj? obj)

Source

Return if obj is same Point value.

fromStr

static new fromStr(Str s, Bool checked := true)

Source

Parse from comma or space separated string. If invalid then throw ParseErr or return null based on checked flag.

hash

virtual override Int hash()

Source

Return hash of x and y.

make

new make(Float x, Float y)

Source

Construct with x, y.

makeInt

new makeInt(Int x, Int y)

Source

Construct with x, y.

toStr

virtual override Str toStr()

Source

Return "x y"

translate

Point translate(Point t)

Source

Return x+tx, y+ty

x

const Float x

Source

X coordinate

y

const Float y

Source

Y coordinate