Documentation ¶
Index ¶
- Constants
- func Floor(x float64) int64
- func VectorsDotProduct(left, right Vector) float64
- type Matrix
- type Ray
- type Vector
- func MultiplyVectMatr(v Vector, m Matrix) Vector
- func NewVector(x, y, z float64) Vector
- func VectorFloatMultiply(vec Vector, multi float64) Vector
- func VectorsAddition(left, right Vector) Vector
- func VectorsMultiplication(left, right Vector) Vector
- func VectorsSubstraction(left, right Vector) Vector
Constants ¶
View Source
const ( DegToRad = 0.017453292519943295769236907684886127134428718885417 // Pi/180 RadToDeg = 57.295779513082320876798154814105170332405472466564 // 180/Pi )
Variables ¶
This section is empty.
Functions ¶
func VectorsDotProduct ¶
Types ¶
type Matrix ¶
type Matrix [3][3]float64
func MatrixMultiplication ¶
func RotationAroundY ¶
func RotationAroundZ ¶
func (*Matrix) Determinant ¶
type Vector ¶
type Vector struct {
X, Y, Z float64
}
func MultiplyVectMatr ¶
func VectorFloatMultiply ¶
func VectorsAddition ¶
func VectorsSubstraction ¶
func (*Vector) UnaryMinus ¶
func (v *Vector) UnaryMinus()
Click to show internal directories.
Click to hide internal directories.