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.crprism/maths/maths.cr
prism/maths/matrix4f.cr
prism/maths/quanternion.cr
prism/maths/vector2f.cr
prism/maths/vector3f.cr
Instance Method Summary
-
#barry_centric_weight(p1 : Vector3f, p2 : Vector3f, p3 : Vector3f, pos : Vector2f) : Float32
Calculates the berry centric weight for a point between 3 vetices
-
#to_rad(degree : Float32) : Float32
converts degrees to radians
Instance Method Detail
Calculates the berry centric weight for a point between 3 vetices