Documentation ¶
Index ¶
- func AddAB(a [3]float32, b [3]float32) [3]float32
- func AverageAB(a [3]float32, b [3]float32) [3]float32
- func AverageAll(all [][3]float32) [3]float32
- func CrossAB(a [3]float32, b [3]float32) [3]float32
- func DotAB(a [3]float32, b [3]float32) float32
- func GetFaceNormal(v0 [3]float32, v1 [3]float32, v2 [3]float32) bool
- func IsPointInside(p [3]float32, v0 [3]float32, v1 [3]float32, v2 [3]float32) bool
- func Length(v [3]float32) float32
- func Normalize(v [3]float32) [3]float32
- func SubAB(a [3]float32, b [3]float32) [3]float32
- func SumAll(all [][3]float32) [3]float32
- type Matrix4
- func (self *Matrix4) Copy() *Matrix4
- func (self *Matrix4) GetElements() *[16]float32
- func (self *Matrix4) MultiplyToTheLeft(matrix *Matrix4) *Matrix4
- func (self *Matrix4) MultiplyToTheRight(matrix *Matrix4) *Matrix4
- func (self *Matrix4) MultiplyVector3(v [3]float32) [3]float32
- func (self *Matrix4) Set(v00 float32, v01 float32, v02 float32, v03 float32, v10 float32, v11 float32, ...) *Matrix4
- func (self *Matrix4) SetCopy(m *Matrix4) *Matrix4
- func (self *Matrix4) SetIdentity() *Matrix4
- func (self *Matrix4) SetMultiplyMatrices(matrices ...*Matrix4) *Matrix4
- func (self *Matrix4) SetRotationByAxis(axis [3]float32, angle_in_degree float32) *Matrix4
- func (self *Matrix4) SetScaling(sx float32, sy float32, sz float32) *Matrix4
- func (self *Matrix4) SetTranslation(tx float32, ty float32, tz float32) *Matrix4
- func (self *Matrix4) SetTranspose() *Matrix4
- func (self *Matrix4) Transpose() *Matrix4
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AverageAll ¶
func IsPointInside ¶
Types ¶
type Matrix4 ¶
type Matrix4 struct {
// contains filtered or unexported fields
}
func NewMatrix4 ¶
func NewMatrix4() *Matrix4
func (*Matrix4) GetElements ¶
func (*Matrix4) MultiplyToTheLeft ¶
func (*Matrix4) MultiplyToTheRight ¶
func (*Matrix4) MultiplyVector3 ¶
func (*Matrix4) SetIdentity ¶
func (*Matrix4) SetMultiplyMatrices ¶
func (*Matrix4) SetRotationByAxis ¶
func (*Matrix4) SetScaling ¶
func (*Matrix4) SetTranslation ¶
func (*Matrix4) SetTranspose ¶
Click to show internal directories.
Click to hide internal directories.