Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeightOnTriangle ¶
HeightOnTriangle calculate height of point on a triangle
func HighestInTriangle ¶
HighestInTriangle Find the height of the heighest point in triangle
Types ¶
type Matrix3 ¶
type Matrix3 struct {
// contains filtered or unexported fields
}
Matrix3 is a 3x3 matrix
func MakeMatrix3X ¶
MakeMatrix3X generate the X component of a rotation matrix
func MakeMatrix3Y ¶
MakeMatrix3Y generate the Y component of a rotation matrix
func MakeMatrix3Z ¶
MakeMatrix3Z generate the Z component of a rotation matrix
func (*Matrix3) ToEulerAngle ¶
ToEulerAngle convert a Matrix3 to Euler's angles
func (*Matrix3) ToQuaternion ¶
func (m *Matrix3) ToQuaternion() (q Quaternion)
ToQuaternion convert a rotation matrix3 to quaternion
type Quaternion ¶
Quaternion ...
func (*Quaternion) Mul ¶
func (q *Quaternion) Mul(r *Quaternion) (s *Quaternion)
Mul multiplies 2 quaternions
type Vector3D ¶
Vector3D ...
func CrossProduct ¶
CrossProduct returns the cross product of u and v
func (*Vector3D) MultiplyByMatrix3 ¶
MultiplyByMatrix3 multiply a Vector3D by a Matrix3
Click to show internal directories.
Click to hide internal directories.