Documentation
¶
Index ¶
- type Matrix
- func Frustum(left, right, bottom, top, near, far float64) Matrix
- func Identity() Matrix
- func LookAt(from, to, up Vector) Matrix
- func Orthographic(left, right, bottom, top, near, far float64) Matrix
- func Perspective(fovy, aspect, near, far float64) Matrix
- func RotateAxis(axis Vector, angle float64) Matrix
- func RotateX(angle float64) Matrix
- func RotateY(angle float64) Matrix
- func RotateZ(angle float64) Matrix
- func Scale(v Vector) Matrix
- func Translate(v Vector) Matrix
- type Vector
- func (v1 Vector) Add(v2 Vector) Vector
- func (v1 Vector) AddScalar(f float64) Vector
- func (v1 Vector) Cross(v2 Vector) Vector
- func (v1 Vector) Div(v2 Vector) Vector
- func (v1 Vector) DivScalar(f float64) Vector
- func (v1 Vector) Dot(v2 Vector) float64
- func (v1 Vector) Length() float64
- func (v1 Vector) LengthSq() float64
- func (v1 Vector) Mul(v2 Vector) Vector
- func (v1 Vector) MulScalar(f float64) Vector
- func (v1 Vector) Negate() Vector
- func (v1 Vector) Normalize() Vector
- func (v1 Vector) Sub(v2 Vector) Vector
- func (v1 Vector) SubScalar(f float64) Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matrix ¶
type Matrix struct {
M00, M01, M02, M03 float64
M10, M11, M12, M13 float64
M20, M21, M22, M23 float64
M30, M31, M32, M33 float64
}
func Orthographic ¶
func Perspective ¶
func RotateAxis ¶
Click to show internal directories.
Click to hide internal directories.