module Prism::Maths

Overview

Vector math

TODO move this into a separate library or use an existing library.

Extended Modules

Direct including types

Defined in:

prism/maths/angle.cr
prism/maths/maths.cr
prism/maths/matrix4f.cr
prism/maths/quanternion.cr
prism/maths/vector2f.cr
prism/maths/vector3f.cr

Instance Method Summary

Instance Method Detail

def barry_centric_weight(p1 : Vector3f, p2 : Vector3f, p3 : Vector3f, pos : Vector2f) : Float32 #

Calculates the berry centric weight for a point between 3 vetices


[View source]
def to_rad(degree : Float32) : Float32 #

converts degrees to radians


[View source]