const classcamAxonPlugin::Coord

sys::Obj
  camAxonPlugin::Coord

@Js
@Serializable { simple=true }

Geographic coordinate as latitude and longitute in decimal degrees.

defVal

Source

const static Coord defVal := ...

Default value is "C(0.0,0.0)"

dist

Source

Float dist(Coord c2)

Compute great-circle distance two coordinates using haversine forumula.

equals

Source

virtual override Bool equals(Obj? that)

Equality is based on lat/lng

fromStr

Source

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

Decode from string formatted as "C(lat,lng)"

hash

Source

virtual override Int hash()

Hash is based on lat/lng

lat

Source

Float lat()

Latitude in decimal degrees

lng

Source

Float lng()

Longtitude in decimal degrees

make

Source

new make(Float lat, Float lng)

Construct from floating point decimal degrees

toStr

Source

virtual override Str toStr()

Represet as "C(lat,lng)"