const class gfx::Point

sys::Obj
  gfx::Point

@Js
@Serializable { simple=true }

Source

Point represents a coordinate in the display space.

defVal

const static Point defVal := Point.<ctor>(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 string. If invalid and checked is true then throw ParseErr otherwise return null.

hash

virtual override Int hash()

Source

Return hash of x and y.

make

new make(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 Int x

Source

X coordinate

y

const Int y

Source

Y coordinate