module VectorMath
Overview
TODO Write documentation for CrystalVectorMath
Defined in:
vector_math.crvector_math/matrices.cr
vector_math/vectors.cr
Constant Summary
-
VERSION =
"0.1.0"
Instance Method Summary
- #deg2rad(deg)
-
#mat3(x0 : Float64, x1 : Float64, x2 : Float64, y0 : Float64, y1 : Float64, y2 : Float64, z0 : Float64, z1 : Float64, z2 : Float64)
convenience function for creating Mat3
-
#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
-
#vec2(x : Float64 = 0.0, y : Float64 = 0.0)
convenience function for creating Vec2
-
#vec3(x : Float64 = 0.0, y : Float64 = 0.0, z : Float64 = 0.0)
convenience function for creating Vec3
-
#vec4(x : Float64 = 0.0, y : Float64 = 0.0, z : Float64 = 0.0, w : Float64 = 0.0)
convenience function for creating Vec4
Instance Method Detail
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
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
convenience function for creating Vec2
convenience function for creating Vec3
convenience function for creating Vec4