module Oid::Vector

Direct including types

Defined in:

oid/resources/vector.cr

Instance Method Summary

Instance Method Detail

abstract def !=(other) #

[View source]
def %(other : Vector) #

[View source]
abstract def *(other : Vector) #

Performs component multiplication (for dot product see #dot)


[View source]
abstract def *(other : Float64) #

Performs multiplication


[View source]
def **(other : Vector) #

[View source]
abstract def +(other : Vector) #

Performs component addition


[View source]
abstract def +(other : Float64) #

Performs component addition


[View source]
abstract def -(other : Vector) #

Performs component subtraction


[View source]
abstract def - #

Returns negated vector


[View source]
abstract def /(other : Vector) #

[View source]
def /(other : Float64) #

[View source]
abstract def ==(other) #

[View source]
abstract def clone #

[View source]
def clone(&b) #

[View source]
abstract def cross(other) #

[View source]
abstract def distance(other : Vector) #

[View source]
abstract def dot(other) #

Dot product


[View source]
def heading #

[View source]
def mag #

[View source]
abstract def magnitude #

[View source]
def normalize #

[View source]
abstract def normalize! #

Normalizes current vector


[View source]
abstract def values #

[View source]
abstract def zero! #

[View source]