class Looper::Vector

Defined in:

looper/vector.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(x : Float32 | Int32 = 0, y : Float32 | Int32 = 0) #

[View source]

Class Method Detail

def self.collision?(a1 : Vector, a2 : Vector, b1 : Vector, b2 : Vector) #

[View source]

Instance Method Detail

def collision?(tri : Triangle) #

[View source]
def dot(v : Vector) #

[View source]
def subtract(v : Vector) : Vector #

[View source]
def to_struct #

[View source]
def x : Int32 | Float32 #

[View source]
def x=(x : Int32 | Float32) #

[View source]
def y : Int32 | Float32 #

[View source]
def y=(y : Int32 | Float32) #

[View source]