struct Location

Overview

Struct located in stack :: so its passed by value when passed to methods when returned from methods or assigned to varibales

Defined in:

tut/struct.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(lat : Float32, long : Float32) #

[View source]

Instance Method Detail

def lat : Float32 #

[View source]
def lat=(lat : Float32) #

[View source]
def long : Float32 #

[View source]
def long=(long : Float32) #

[View source]
def position #

[View source]