struct Vector3

Defined in:

nacsio.cr
vector3.cr

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(x : Float64 = 0, y : Float64 = 0, z : Float64 = 0) #

[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]

Class Method Detail

def self.zero #

[View source]

Macro Detail

macro method_missing(call) #

[View source]

Instance Method Detail

def *(a : Vector3) #

[View source]
def *(a : Float) #

[View source]
def +(a) #

[View source]
def + #

[View source]
def -(a) #

[View source]
def - #

[View source]
def /(a : Float) #

[View source]
def cross(other) #

[View source]
def sqr #

[View source]
def to_a #

[View source]
def x : Float64 #

[View source]
def x=(x : Float64) #

[View source]
def y : Float64 #

[View source]
def y=(y : Float64) #

[View source]
def z : Float64 #

[View source]
def z=(z : Float64) #

[View source]