struct IntVector2

Included Modules

Extended Modules

Defined in:

engine/vector2.cr
gui/general.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

[View source]

Class Method Detail

def self.use_fast_cannon? #

Magic method to mark this structure as being fast en-/decodable.


[View source]

Instance Method Detail

def *(scale : Int) #

[View source]
def *(scale : Number) #

[View source]
def +(other : Vector2) #

[View source]
def +(other) #

[View source]
def -(other : Vector2) #

[View source]
def -(other) #

[View source]
def - #

[View source]
def //(scale) #

[View source]
def clone #

[View source]
def copy_with(x _x = @x, y _y = @y) #

[View source]
def inspect(io) #

[View source]
def max #

[View source]
def min #

[View source]
def to_f #

[View source]
def x : Int32 #

def y : Int32 #