Documentation
¶
Index ¶
- func Clamp(value, min, max float64) float64
- func FloorDiv(a, b int) int
- func Radians(degrees float64) float64
- type Matrix3
- type Vector2
- type Vector3
- func (lhs Vector3) Add(rhs Vector3) Vector3
- func (lhs Vector3) ClampScalar(min, max float64) Vector3
- func (lhs Vector3) Cross(rhs Vector3) Vector3
- func (lhs Vector3) DivScalar(rhs float64) Vector3
- func (lhs Vector3) Dot(rhs Vector3) float64
- func (lhs Vector3) Length() float64
- func (lhs Vector3) MaxComponent() float64
- func (lhs Vector3) MulScalar(rhs float64) Vector3
- func (lhs Vector3) Normalize() Vector3
- func (lhs Vector3) PowScalar(power float64) Vector3
- func (lhs Vector3) RotateXY(angle float64) Vector3
- func (lhs Vector3) RotateXZ(angle float64) Vector3
- func (lhs Vector3) RotateYZ(angle float64) Vector3
- func (lhs Vector3) XY() Vector2
- type Vector4
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Matrix3 ¶
type Matrix3 struct {
// contains filtered or unexported fields
}
func DimetricProjection ¶
func DimetricProjection() Matrix3
func NewMatrix3 ¶
type Vector3 ¶
type Vector3 struct {
X, Y, Z float64
}
func (Vector3) ClampScalar ¶
func (Vector3) MaxComponent ¶
Click to show internal directories.
Click to hide internal directories.