class

Coord

@Js
@Serializable { simple=true }
const class Coord : Obj

Geographic coordinate as latitude and longitute in decimal degrees.

constructors fromStr

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

make

Construct from floating point decimal degrees

fields defVal

Default value is "C(0.0,0.0)"

methods toStr

Represented as "C(lat,lng)"

lng

Longtitude in decimal degrees

equals

Equality is based on lat/lng

dist

Compute great-circle distance two coordinates using haversine forumula

hash

Hash is based on lat/lng

lat

Latitude in decimal degrees

defVal const static Coord : defVal

Default value is "C(0.0,0.0)"

dist Float dist(Coord c2)

Compute great-circle distance two coordinates using haversine forumula.

equals virtual Bool equals(Obj? that)

Equality is based on lat/lng

fromStr static new fromStr(Str s, Bool checked)

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

hash virtual Int hash()

Hash is based on lat/lng

lat Float lat()

Latitude in decimal degrees

lng Float lng()

Longtitude in decimal degrees

make new make(Float lat, Float lng)

Construct from floating point decimal degrees

toStr virtual Str toStr()

Represented as "C(lat,lng)"

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST