Documentation ¶
Index ¶
- func AddAB(a [2]float32, b [2]float32) [2]float32
- func BBoxAddPoint(bbox *[2][2]float32, v [2]float32)
- func BBoxCenter(b [2][2]float32) [2]float32
- func BBoxInit() [2][2]float32
- func BBoxInside(b [2][2]float32, v [2]float32) bool
- func BBoxIsSet(b [2][2]float32) bool
- func BBoxMerge(b1 [2][2]float32, b2 [2][2]float32) [2][2]float32
- func BBoxSize(b [2][2]float32) [2]float32
- func CrossAB(a [2]float32, b [2]float32) float32
- func IsCCW(v0 [2]float32, v1 [2]float32, v2 [2]float32) bool
- func IsPointInside(p [2]float32, v0 [2]float32, v1 [2]float32, v2 [2]float32) bool
- func Length(v [2]float32) float32
- func Normalize(v [2]float32) [2]float32
- func SubAB(a [2]float32, b [2]float32) [2]float32
- type Matrix3
- func (self *Matrix3) Copy() *Matrix3
- func (self *Matrix3) GetElements() *[9]float32
- func (self *Matrix3) MultiplyToTheLeft(matrix *Matrix3) *Matrix3
- func (self *Matrix3) MultiplyToTheRight(matrix *Matrix3) *Matrix3
- func (self *Matrix3) MultiplyVector2(v [2]float32) [2]float32
- func (self *Matrix3) Set(v00 float32, v01 float32, v02 float32, v10 float32, v11 float32, v12 float32, ...) *Matrix3
- func (self *Matrix3) SetCopy(m *Matrix3) *Matrix3
- func (self *Matrix3) SetIdentity() *Matrix3
- func (self *Matrix3) SetMultiplyMatrices(matrices ...*Matrix3) *Matrix3
- func (self *Matrix3) SetRotation(angle_in_degree float32) *Matrix3
- func (self *Matrix3) SetScaling(sx float32, sy float32) *Matrix3
- func (self *Matrix3) SetTranslation(tx float32, ty float32) *Matrix3
- func (self *Matrix3) SetTranspose() *Matrix3
- func (self *Matrix3) Transpose() *Matrix3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BBoxAddPoint ¶
func BBoxCenter ¶
func BBoxInside ¶
func IsPointInside ¶
Types ¶
type Matrix3 ¶
type Matrix3 struct {
// contains filtered or unexported fields
}
func NewMatrix3 ¶
func NewMatrix3() *Matrix3
func (*Matrix3) GetElements ¶
func (*Matrix3) MultiplyToTheLeft ¶
func (*Matrix3) MultiplyToTheRight ¶
func (*Matrix3) MultiplyVector2 ¶
func (*Matrix3) SetIdentity ¶
func (*Matrix3) SetMultiplyMatrices ¶
func (*Matrix3) SetRotation ¶
func (*Matrix3) SetTranslation ¶
func (*Matrix3) SetTranspose ¶
Click to show internal directories.
Click to hide internal directories.