Documentation ¶
Overview ¶
Package mm is the main package for the Marshmallow graphics library for golang. It borrows shamlessly from three.js in it's layout and overall simlicity goals.
Index ¶
- Constants
- Variables
- func CharAt(s string, i int) string
- func Clamp(value, min, max float64) float64
- func EuclideanModulo(n, m float64) float64
- func EulerEmptyCallback()
- func GenerateUUID() string
- func Max(a, b float64, vals ...float64) float64
- func QuaternionSlerpFlat(dst []float64, dstOffset int, src0 []float64, srcOffset0 int, src1 []float64, ...)
- func Round(v float64) float64
- type Box3
- func (b *Box3) ApplyMatrix4(matrix *Matrix4) *Box3
- func (b *Box3) Center(target *Vector3) *Vector3
- func (b *Box3) ClampPoint(point, target *Vector3) *Vector3
- func (b *Box3) Clone() *Box3
- func (b *Box3) ContainsBox(box *Box3) bool
- func (b *Box3) ContainsPoint(point *Vector3) bool
- func (b *Box3) Copy(src *Box3) *Box3
- func (b *Box3) DistanceToPoint(point *Vector3) float64
- func (b *Box3) Equals(box *Box3) bool
- func (b *Box3) ExpandByPoint(point *Vector3) *Box3
- func (b *Box3) ExpandByScalar(scalar float64) *Box3
- func (b *Box3) ExpandByVector(vector *Vector3) *Box3
- func (b *Box3) GetParameter(point, target *Vector3) *Vector3
- func (b *Box3) Intersect(other *Box3) *Box3
- func (b *Box3) IntersectsBox(other *Box3) bool
- func (b *Box3) IsEmpty() bool
- func (b *Box3) MakeEmpty() *Box3
- func (b *Box3) Set(min, max *Vector3) *Box3
- func (b *Box3) SetFromArray(array []float64) *Box3
- func (b *Box3) SetFromCenterAndSize(center, size *Vector3) *Box3
- func (b *Box3) SetFromPoints(points []*Vector3) *Box3
- func (b *Box3) Size(target *Vector3) *Vector3
- func (b *Box3) String() string
- func (b *Box3) Translate(offset *Vector3) *Box3
- func (b *Box3) Union(other *Box3) *Box3
- type Color
- func (color *Color) Add(c *Color) *Color
- func (color *Color) AddColors(color1, color2 *Color) *Color
- func (color *Color) AddScalar(s float64) *Color
- func (color *Color) B32() float32
- func (color *Color) Clone() *Color
- func (color *Color) ConvertGammaToLinear() *Color
- func (color *Color) ConvertLinearToGamma() *Color
- func (color *Color) Copy(src *Color) *Color
- func (color *Color) CopyGammaToLinear(gammaColor *Color) *Color
- func (color *Color) CopyLinearToGamma(gammaColor *Color) *Color
- func (color *Color) Equals(c *Color) bool
- func (color *Color) FromArray(array []float64, offset int) *Color
- func (color *Color) G32() float32
- func (color *Color) GetHSL() (hue, saturation, lightness float64)
- func (color *Color) GetHex() int
- func (color *Color) GetHexString() string
- func (color *Color) GetStyle() string
- func (color *Color) Lerp(c *Color, alpha float64) *Color
- func (color *Color) Multiply(c *Color) *Color
- func (color *Color) MultiplyScalar(s float64) *Color
- func (color *Color) OffsetHSL(h, s, l float64) *Color
- func (color *Color) R32() float32
- func (color *Color) Set(r, g, b float64) *Color
- func (color *Color) SetHSL(h, s, l float64) *Color
- func (color *Color) SetHex(hex int) *Color
- func (color *Color) SetRGB(r, g, b float64) *Color
- func (color *Color) SetScalar(scalar float64) *Color
- func (color *Color) SetStyle(style string) *Color
- func (color *Color) Sub(c *Color) *Color
- func (color *Color) ToArray(array []float64, offset int) []float64
- type Euler
- func (e *Euler) Clone() *Euler
- func (e *Euler) Copy(src *Euler) *Euler
- func (e *Euler) Equals(other *Euler) bool
- func (e *Euler) FromArray(array []float64, order EulerOrder) *Euler
- func (e *Euler) GetOder() EulerOrder
- func (e *Euler) GetX() float64
- func (e *Euler) GetY() float64
- func (e *Euler) GetZ() float64
- func (e *Euler) OnChange(callback EulerChangeCallback) *Euler
- func (e *Euler) Reorder(newOrder EulerOrder) *Euler
- func (e *Euler) Set(x, y, z float64, order EulerOrder) *Euler
- func (e *Euler) SetFromQuaternion(q *Quaternion, order EulerOrder, update bool) *Euler
- func (e *Euler) SetFromRotationMatrix(m *Matrix4, order EulerOrder, update bool) *Euler
- func (e *Euler) SetFromVector3(v *Vector3, order EulerOrder) *Euler
- func (e *Euler) SetOrder(value EulerOrder)
- func (e *Euler) SetX(value float64)
- func (e *Euler) SetY(value float64)
- func (e *Euler) SetZ(value float64)
- func (e *Euler) ToArray(array []float64, offset int) ([]float64, EulerOrder)
- func (e *Euler) ToVector3(target *Vector3) *Vector3
- type EulerChangeCallback
- type EulerOrder
- type Matrix3
- func (m *Matrix3) ApplyToVector3Array(array []float64, offset int, length int) []float64
- func (m *Matrix3) Clone() *Matrix3
- func (m *Matrix3) Copy(src *Matrix3) *Matrix3
- func (m *Matrix3) Determinant() float64
- func (m *Matrix3) FromArray(array []float64) *Matrix3
- func (m *Matrix3) GetInverse(matrix *Matrix3) *Matrix3
- func (m *Matrix3) GetNormalMatrix(matrix4 *Matrix4) *Matrix3
- func (m *Matrix3) Identity() *Matrix3
- func (m *Matrix3) MultiplyScalar(s float64) *Matrix3
- func (m *Matrix3) MustGetInverse(matrix *Matrix3) *Matrix3
- func (m *Matrix3) Set(n11, n12, n13, n21, n22, n23, n31, n32, n33 float64) *Matrix3
- func (m *Matrix3) SetFromMatrix4(other *Matrix4) *Matrix3
- func (m *Matrix3) ToArray(array []float64, offset int) []float64
- func (m *Matrix3) Transpose() *Matrix3
- func (m *Matrix3) TransposeIntoArray(r []float64) *Matrix3
- type Matrix4
- func (m *Matrix4) Clone() *Matrix4
- func (m *Matrix4) Copy(other *Matrix4) *Matrix4
- func (m *Matrix4) CopyPosition(other *Matrix4) *Matrix4
- func (m *Matrix4) Determinant() float64
- func (m *Matrix4) Equals(matrix *Matrix4) bool
- func (m *Matrix4) ExtractBasis(xAxis, yAxis, zAxis *Vector3) *Matrix4
- func (m *Matrix4) ExtractRotation(target *Matrix4) *Matrix4
- func (m *Matrix4) FromArray(array []float64) *Matrix4
- func (m *Matrix4) GetInverse(src *Matrix4) *Matrix4
- func (m *Matrix4) GetMaxScaleOnAxis() float64
- func (m *Matrix4) Identity() *Matrix4
- func (m *Matrix4) LookAt(eye, target, up *Vector3) *Matrix4
- func (m *Matrix4) MakeBasis(xAxis, yAxis, zAxis *Vector3) *Matrix4
- func (m *Matrix4) MakeFrustum(left, right, bottom, top, near, far float64) *Matrix4
- func (m *Matrix4) MakeOrthographic(left, right, top, bottom, near, far float64) *Matrix4
- func (m *Matrix4) MakePerspective(fov, aspect, near, far float64) *Matrix4
- func (m *Matrix4) MakeRotationAxis(axis *Vector3, angle float64) *Matrix4
- func (m *Matrix4) MakeRotationFromEuler(euler *Euler) *Matrix4
- func (m *Matrix4) MakeRotationFromQuaternion(q *Quaternion) *Matrix4
- func (m *Matrix4) MakeRotationX(theta float64) *Matrix4
- func (m *Matrix4) MakeRotationY(theta float64) *Matrix4
- func (m *Matrix4) MakeRotationZ(theta float64) *Matrix4
- func (m *Matrix4) MakeScale(x, y, z float64) *Matrix4
- func (m *Matrix4) MakeTranslation(x, y, z float64) *Matrix4
- func (m *Matrix4) Multiply(other *Matrix4) *Matrix4
- func (m *Matrix4) MultiplyMatrices(a, b *Matrix4) *Matrix4
- func (m *Matrix4) MultiplyScalar(s float64) *Matrix4
- func (m *Matrix4) MultiplyToArray(a, b *Matrix4, target []float64) []float64
- func (m Matrix4) MustGetInverse(src *Matrix4) *Matrix4
- func (m *Matrix4) Premultiply(other *Matrix4) *Matrix4
- func (m *Matrix4) Scale(v *Vector3) *Matrix4
- func (m *Matrix4) Set(...) *Matrix4
- func (m *Matrix4) SetPosition(v *Vector3) *Matrix4
- func (m Matrix4) ToArray(array []float64, offset int) []float64
- func (m Matrix4) ToArray32(array []float32, offset int) []float32
- func (m *Matrix4) Transpose() *Matrix4
- type Node
- type Object
- type Positioner
- type Projector
- type Quaternion
- func (q *Quaternion) Clone() *Quaternion
- func (q *Quaternion) Conjugate() *Quaternion
- func (q *Quaternion) Copy(quaternion *Quaternion) *Quaternion
- func (q *Quaternion) Dot(v *Quaternion) float64
- func (q *Quaternion) Equals(quaternion *Quaternion) bool
- func (q *Quaternion) FromArray(array []float64, offset int) *Quaternion
- func (q *Quaternion) GetW() float64
- func (q *Quaternion) GetX() float64
- func (q *Quaternion) GetY() float64
- func (q *Quaternion) GetZ() float64
- func (q *Quaternion) Inverse() *Quaternion
- func (q *Quaternion) Length() float64
- func (q *Quaternion) LengthSq() float64
- func (q *Quaternion) Multiply(other *Quaternion) *Quaternion
- func (q *Quaternion) MultiplyQuaternions(a, b *Quaternion) *Quaternion
- func (q *Quaternion) Normalize() *Quaternion
- func (q *Quaternion) OnChange(callback func()) *Quaternion
- func (q *Quaternion) Premultiply(other *Quaternion) *Quaternion
- func (q *Quaternion) Set(x, y, z, w float64) *Quaternion
- func (q *Quaternion) SetFromAxisAngle(axis *Vector3, angle float64) *Quaternion
- func (q *Quaternion) SetFromEuler(euler *Euler, update bool) *Quaternion
- func (q *Quaternion) SetFromRotationMatrix(m *Matrix4) *Quaternion
- func (q *Quaternion) SetFromUnitVectors(vFrom, vTo *Vector3) *Quaternion
- func (q *Quaternion) SetW(value float64)
- func (q *Quaternion) SetX(value float64)
- func (q *Quaternion) SetY(value float64)
- func (q *Quaternion) SetZ(value float64)
- func (q *Quaternion) Slerp(qb *Quaternion, t float64) *Quaternion
- func (q *Quaternion) String() string
- func (q *Quaternion) ToArray(array []float64, offset int) []float64
- type Renderer
- type Scene
- type Vector3
- func (v *Vector3) Add(other *Vector3) *Vector3
- func (v *Vector3) AddScalar(s float64) *Vector3
- func (v *Vector3) AddScaledVector(other *Vector3, s float64) *Vector3
- func (v *Vector3) AddVectors(a, b *Vector3) *Vector3
- func (v *Vector3) AngleTo(other *Vector3) float64
- func (v *Vector3) ApplyEuler(euler *Euler) *Vector3
- func (v *Vector3) ApplyMatrix3(m *Matrix3) *Vector3
- func (v *Vector3) ApplyMatrix4(m *Matrix4) *Vector3
- func (v *Vector3) ApplyProjection(m *Matrix4) *Vector3
- func (v *Vector3) ApplyQuaternion(q *Quaternion) *Vector3
- func (v *Vector3) Ceil() *Vector3
- func (v *Vector3) Clamp(min, max *Vector3) *Vector3
- func (v *Vector3) ClampLength(min, max float64) *Vector3
- func (v *Vector3) ClampScalar(minVal, maxVal float64) *Vector3
- func (v *Vector3) Clone() *Vector3
- func (v *Vector3) Copy(other *Vector3) *Vector3
- func (v *Vector3) Cross(other *Vector3) *Vector3
- func (v *Vector3) CrossVectors(a, b *Vector3) *Vector3
- func (v *Vector3) DistanceTo(other *Vector3) float64
- func (v *Vector3) DistanceToManhattan(other *Vector3) float64
- func (v *Vector3) DistanceToSquared(other *Vector3) float64
- func (v *Vector3) Divide(other *Vector3) *Vector3
- func (v *Vector3) DivideScalar(scalar float64) *Vector3
- func (v *Vector3) Dot(other *Vector3) float64
- func (v *Vector3) Equals(other *Vector3) bool
- func (v *Vector3) Floor() *Vector3
- func (v *Vector3) FromArray(array []float64, offset int) *Vector3
- func (v *Vector3) GetComponent(index int) float64
- func (v *Vector3) Length() float64
- func (v *Vector3) LengthManhattan() float64
- func (v *Vector3) LengthSq() float64
- func (v *Vector3) Lerp(other *Vector3, alpha float64) *Vector3
- func (v *Vector3) LerpVectors(v1, v2 *Vector3, alpha float64) *Vector3
- func (v *Vector3) Max(other *Vector3) *Vector3
- func (v *Vector3) Min(other *Vector3) *Vector3
- func (v *Vector3) Multiply(other *Vector3) *Vector3
- func (v *Vector3) MultiplyScalar(scalar float64) *Vector3
- func (v *Vector3) MultiplyVectors(a, b *Vector3) *Vector3
- func (v *Vector3) Negate() *Vector3
- func (v *Vector3) Normalize() *Vector3
- func (v *Vector3) Project(camera Projector) *Vector3
- func (v *Vector3) ProjectOnPlane(planeNormal *Vector3) *Vector3
- func (v *Vector3) ProjectOnVector(vector *Vector3) *Vector3
- func (v *Vector3) Reflect(normal *Vector3) *Vector3
- func (v *Vector3) Round() *Vector3
- func (v *Vector3) RoundToZero() *Vector3
- func (v *Vector3) Set(x, y, z float64) *Vector3
- func (v *Vector3) SetComponent(index int, value float64) *Vector3
- func (v *Vector3) SetFromMatrixColumn(m *Matrix4, index int) *Vector3
- func (v *Vector3) SetFromMatrixPosition(m *Matrix4) *Vector3
- func (v *Vector3) SetFromMatrixScale(m *Matrix4) *Vector3
- func (v *Vector3) SetLength(length float64) *Vector3
- func (v *Vector3) SetScalar(scalar float64) *Vector3
- func (v *Vector3) SetX(x float64) *Vector3
- func (v *Vector3) SetY(y float64) *Vector3
- func (v *Vector3) SetZ(z float64) *Vector3
- func (v *Vector3) String() string
- func (v *Vector3) Sub(other *Vector3) *Vector3
- func (v *Vector3) SubScalar(s float64) *Vector3
- func (v *Vector3) SubVectors(a, b *Vector3) *Vector3
- func (v *Vector3) ToArray(target []float64, offset int) []float64
- func (v *Vector3) ToArray32(target []float32, offset int) []float32
- func (v *Vector3) TransformDirection(m *Matrix4) *Vector3
- func (v *Vector3) Unproject(camera Projector) *Vector3
- type WindowRenderer
Constants ¶
View Source
const ( XYZ EulerOrder = "XYZ" YZX = "YZX" ZXY = "ZXY" XZY = "XZY" YXZ = "YXZ" ZYX = "ZYX" CurrentOrder = "current" )
View Source
const ( Deg2Rad = math.Pi / 180.0 Rad2Deg = 180.0 / math.Pi )
View Source
const EulerDefaultOrder = XYZ
Variables ¶
View Source
var ColorKeywords = map[string]int{}/* 147 elements not displayed */
View Source
var (
Epsilon = math.Pow(2, -52)
)
View Source
var EulerRotationOrders = []EulerOrder{XYZ, YZX, ZXY, XZY, YXZ, ZYX}
Functions ¶
func EuclideanModulo ¶
func EulerEmptyCallback ¶
func EulerEmptyCallback()
func GenerateUUID ¶
func GenerateUUID() string
func QuaternionSlerpFlat ¶
Types ¶
type Box3 ¶
func (*Box3) ApplyMatrix4 ¶
func (*Box3) ClampPoint ¶
func (*Box3) ContainsBox ¶
func (*Box3) ContainsPoint ¶
func (*Box3) DistanceToPoint ¶
func (*Box3) ExpandByPoint ¶
func (*Box3) ExpandByScalar ¶
func (*Box3) ExpandByVector ¶
func (*Box3) GetParameter ¶
func (*Box3) IntersectsBox ¶
func (*Box3) SetFromArray ¶
func (*Box3) SetFromCenterAndSize ¶
func (*Box3) SetFromPoints ¶
type Color ¶
func (*Color) ConvertGammaToLinear ¶
func (*Color) ConvertLinearToGamma ¶
func (*Color) CopyGammaToLinear ¶
func (*Color) CopyLinearToGamma ¶
func (*Color) GetHexString ¶
func (*Color) MultiplyScalar ¶
type Euler ¶
type Euler struct { Order EulerOrder OnChangeCallback EulerChangeCallback // contains filtered or unexported fields }
func (*Euler) GetOder ¶
func (e *Euler) GetOder() EulerOrder
func (*Euler) OnChange ¶
func (e *Euler) OnChange(callback EulerChangeCallback) *Euler
func (*Euler) Reorder ¶
func (e *Euler) Reorder(newOrder EulerOrder) *Euler
func (*Euler) SetFromQuaternion ¶
func (e *Euler) SetFromQuaternion( q *Quaternion, order EulerOrder, update bool) *Euler
func (*Euler) SetFromRotationMatrix ¶
func (e *Euler) SetFromRotationMatrix( m *Matrix4, order EulerOrder, update bool) *Euler
func (*Euler) SetFromVector3 ¶
func (e *Euler) SetFromVector3(v *Vector3, order EulerOrder) *Euler
func (*Euler) SetOrder ¶
func (e *Euler) SetOrder(value EulerOrder)
type EulerChangeCallback ¶
type EulerChangeCallback func()
type EulerOrder ¶
type EulerOrder string
type Matrix3 ¶
type Matrix3 struct {
Elements []float64
}
func NewMatrix3 ¶
func NewMatrix3() *Matrix3
func (*Matrix3) ApplyToVector3Array ¶
func (*Matrix3) Determinant ¶
func (*Matrix3) GetInverse ¶
func (*Matrix3) GetNormalMatrix ¶
func (*Matrix3) MultiplyScalar ¶
func (*Matrix3) MustGetInverse ¶
func (*Matrix3) SetFromMatrix4 ¶
func (*Matrix3) TransposeIntoArray ¶
type Matrix4 ¶
type Matrix4 struct {
Elements []float64
}
func NewMatrix4 ¶
func NewMatrix4() *Matrix4
func (*Matrix4) CopyPosition ¶
func (*Matrix4) Determinant ¶
func (*Matrix4) ExtractBasis ¶
func (*Matrix4) ExtractRotation ¶
func (*Matrix4) GetInverse ¶
func (*Matrix4) GetMaxScaleOnAxis ¶
func (*Matrix4) MakeFrustum ¶
func (*Matrix4) MakeOrthographic ¶
func (*Matrix4) MakePerspective ¶
func (*Matrix4) MakeRotationAxis ¶
func (*Matrix4) MakeRotationFromEuler ¶
func (*Matrix4) MakeRotationFromQuaternion ¶
func (m *Matrix4) MakeRotationFromQuaternion(q *Quaternion) *Matrix4
func (*Matrix4) MakeRotationX ¶
func (*Matrix4) MakeRotationY ¶
func (*Matrix4) MakeRotationZ ¶
func (*Matrix4) MakeTranslation ¶
func (*Matrix4) MultiplyMatrices ¶
func (*Matrix4) MultiplyScalar ¶
func (*Matrix4) MultiplyToArray ¶
func (Matrix4) MustGetInverse ¶
func (*Matrix4) Premultiply ¶
func (*Matrix4) SetPosition ¶
type Node ¶
type Node interface { Add(Node) Remove(Node) bool GetParent() Node GetChildren() []Node // contains filtered or unexported methods }
Node represents an item that can exist in an object hierearchy. A node is the most basic of objects in the marshmallow library
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object acts as a common base to many more specific types in the marshmallow library
func NewObject ¶
func NewObject() *Object
NewObject creates a new Object instace with default values
func (*Object) GetChildren ¶
GetChildren returns the current slice of child nodes for this object
type Positioner ¶
type Positioner interface {
GetMatrixWorld() *Matrix4
}
type Projector ¶
type Projector interface { Positioner GetProjectionMatrix() *Matrix4 }
type Quaternion ¶
type Quaternion struct { OnChangeCallback func() // contains filtered or unexported fields }
func NewQuaternion ¶
func NewQuaternion() *Quaternion
func QuaternionSlerp ¶
func QuaternionSlerp(qa, qb, qm *Quaternion, t float64) *Quaternion
func (*Quaternion) Clone ¶
func (q *Quaternion) Clone() *Quaternion
func (*Quaternion) Conjugate ¶
func (q *Quaternion) Conjugate() *Quaternion
func (*Quaternion) Copy ¶
func (q *Quaternion) Copy(quaternion *Quaternion) *Quaternion
func (*Quaternion) Dot ¶
func (q *Quaternion) Dot(v *Quaternion) float64
func (*Quaternion) Equals ¶
func (q *Quaternion) Equals(quaternion *Quaternion) bool
func (*Quaternion) FromArray ¶
func (q *Quaternion) FromArray(array []float64, offset int) *Quaternion
func (*Quaternion) GetW ¶
func (q *Quaternion) GetW() float64
func (*Quaternion) GetX ¶
func (q *Quaternion) GetX() float64
func (*Quaternion) GetY ¶
func (q *Quaternion) GetY() float64
func (*Quaternion) GetZ ¶
func (q *Quaternion) GetZ() float64
func (*Quaternion) Inverse ¶
func (q *Quaternion) Inverse() *Quaternion
func (*Quaternion) Length ¶
func (q *Quaternion) Length() float64
func (*Quaternion) LengthSq ¶
func (q *Quaternion) LengthSq() float64
func (*Quaternion) Multiply ¶
func (q *Quaternion) Multiply(other *Quaternion) *Quaternion
func (*Quaternion) MultiplyQuaternions ¶
func (q *Quaternion) MultiplyQuaternions(a, b *Quaternion) *Quaternion
func (*Quaternion) Normalize ¶
func (q *Quaternion) Normalize() *Quaternion
func (*Quaternion) OnChange ¶
func (q *Quaternion) OnChange(callback func()) *Quaternion
func (*Quaternion) Premultiply ¶
func (q *Quaternion) Premultiply(other *Quaternion) *Quaternion
func (*Quaternion) Set ¶
func (q *Quaternion) Set(x, y, z, w float64) *Quaternion
func (*Quaternion) SetFromAxisAngle ¶
func (q *Quaternion) SetFromAxisAngle(axis *Vector3, angle float64) *Quaternion
func (*Quaternion) SetFromEuler ¶
func (q *Quaternion) SetFromEuler(euler *Euler, update bool) *Quaternion
func (*Quaternion) SetFromRotationMatrix ¶
func (q *Quaternion) SetFromRotationMatrix(m *Matrix4) *Quaternion
func (*Quaternion) SetFromUnitVectors ¶
func (q *Quaternion) SetFromUnitVectors(vFrom, vTo *Vector3) *Quaternion
func (*Quaternion) SetW ¶
func (q *Quaternion) SetW(value float64)
func (*Quaternion) SetX ¶
func (q *Quaternion) SetX(value float64)
func (*Quaternion) SetY ¶
func (q *Quaternion) SetY(value float64)
func (*Quaternion) SetZ ¶
func (q *Quaternion) SetZ(value float64)
func (*Quaternion) Slerp ¶
func (q *Quaternion) Slerp(qb *Quaternion, t float64) *Quaternion
func (*Quaternion) String ¶
func (q *Quaternion) String() string
type Vector3 ¶
func NewVector3 ¶
func NewVector3() *Vector3
func Vector3_Max ¶
func Vector3_Max() *Vector3
func Vector3_Min ¶
func Vector3_Min() *Vector3
func (*Vector3) AddScaledVector ¶
func (*Vector3) AddVectors ¶
func (*Vector3) ApplyEuler ¶
func (*Vector3) ApplyMatrix3 ¶
func (*Vector3) ApplyMatrix4 ¶
func (*Vector3) ApplyProjection ¶
func (*Vector3) ApplyQuaternion ¶
func (v *Vector3) ApplyQuaternion(q *Quaternion) *Vector3
func (*Vector3) ClampLength ¶
func (*Vector3) ClampScalar ¶
func (*Vector3) CrossVectors ¶
func (*Vector3) DistanceTo ¶
func (*Vector3) DistanceToManhattan ¶
func (*Vector3) DistanceToSquared ¶
func (*Vector3) DivideScalar ¶
func (*Vector3) GetComponent ¶
func (*Vector3) LengthManhattan ¶
func (*Vector3) LerpVectors ¶
func (*Vector3) MultiplyScalar ¶
func (*Vector3) MultiplyVectors ¶
func (*Vector3) ProjectOnPlane ¶
func (*Vector3) ProjectOnVector ¶
func (*Vector3) RoundToZero ¶
func (*Vector3) SetFromMatrixColumn ¶
func (*Vector3) SetFromMatrixPosition ¶
func (*Vector3) SetFromMatrixScale ¶
func (*Vector3) SubVectors ¶
func (*Vector3) TransformDirection ¶
type WindowRenderer ¶
type WindowRenderer struct {
// contains filtered or unexported fields
}
func NewWindowRenderer ¶
func NewWindowRenderer(w, h int, title string) (*WindowRenderer, error)
func (*WindowRenderer) Destroy ¶
func (r *WindowRenderer) Destroy()
func (*WindowRenderer) Render ¶
func (r *WindowRenderer) Render(scene *Scene, camera Projector)
func (*WindowRenderer) ShouldClose ¶
func (r *WindowRenderer) ShouldClose() bool
Source Files ¶
Click to show internal directories.
Click to hide internal directories.