module VectorMath

Overview

TODO Write documentation for CrystalVectorMath

Defined in:

vector_math.cr
vector_math/matrices.cr
vector_math/vectors.cr

Constant Summary

VERSION = "0.1.0"

Instance Method Summary

Instance Method Detail

def deg2rad(deg) #

[View source]
def mat3(x0 : Float64, x1 : Float64, x2 : Float64, y0 : Float64, y1 : Float64, y2 : Float64, z0 : Float64, z1 : Float64, z2 : Float64) #

convenience function for creating Mat3


[View source]
def mat4(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, y0 : Float64, y1 : Float64, y2 : Float64, y3 : Float64, z0 : Float64, z1 : Float64, z2 : Float64, z3 : Float64, w0 : Float64, w1 : Float64, w2 : Float64, w3 : Float64) #

convenience function for creating Mat3


[View source]
def vec2(x : Float64 = 0.0, y : Float64 = 0.0) #

convenience function for creating Vec2


[View source]
def vec3(x : Float64 = 0.0, y : Float64 = 0.0, z : Float64 = 0.0) #

convenience function for creating Vec3


[View source]
def vec4(x : Float64 = 0.0, y : Float64 = 0.0, z : Float64 = 0.0, w : Float64 = 0.0) #

convenience function for creating Vec4


[View source]