Documentation
¶
Index ¶
- type Matrix
- type Mesh
- type Triangle
- type Vector
- func (a Vector) Add(b Vector) Vector
- func (a Vector) Cross(b Vector) Vector
- func (a Vector) Div(b Vector) Vector
- func (a Vector) Max(b *Vector) Vector
- func (a Vector) Min(b *Vector) Vector
- func (a Vector) Mult(b Vector) Vector
- func (a Vector) Normalize() Vector
- func (a Vector) Sub(b Vector) Vector
- func (obj Vector) ToVertex(normal *Vector) *Vertex
- type Vertex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matrix ¶
type Matrix struct {
X00, X01, X02, X03 float64
X10, X11, X12, X13 float64
X20, X21, X22, X23 float64
X30, X31, X32, X33 float64
}
func IdentityMatrix ¶
func IdentityMatrix() Matrix
func (Matrix) MulPosition ¶
type Mesh ¶
type Mesh struct {
Triangles []*Triangle
}
func (*Mesh) AddTriangle ¶
func (*Mesh) RotateAndTranslate ¶
func (*Mesh) ScaleToDimensions ¶
Click to show internal directories.
Click to hide internal directories.