module Crono::GameMath

Defined in:

crono/math.cr

Instance Method Summary

Instance Method Detail

def distance(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64) #

[View source]
def distance_sqr(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64) #

[View source]
def offset_x(angle : Float64, radius : Float64) #

[View source]
def offset_y(angle : Float64, radius : Float64) #

[View source]
def square(value : Int32 | Float64) #

[View source]