struct City

Defined in:

ttp-inst/city.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(id : Int32, x : Float64, y : Float64) #

[View source]

Class Method Detail

def self.euc_dist(a : City, b : City) #

Distancia euclideana entre dos ciudades


[View source]

Instance Method Detail

def clone #

Copia profunda


[View source]
def id : Int32 #

Etiqueta que identifica a la ciudad


[View source]
def x : Float64 #

Primer coordenada


[View source]
def y : Float64 #

Segunda coordenada


[View source]