Documentation ¶
Index ¶
- func DegToRad(angle float64) float64
- type Plane
- type Point
- type PointWithColour
- type Vector2
- type Vector3
- func (a Vector3) Add(b Vector3) Vector3
- func (a Vector3) Cross(b Vector3) Vector3
- func (a Vector3) DivideByConstant(by float64) Vector3
- func (a Vector3) DivideByVector(by Vector3) Vector3
- func (a Vector3) Dot(b Vector3) float64
- func (a Vector3) Equals(b Vector3) bool
- func (a Vector3) Length() float64
- func (a Vector3) Lerp(b Vector3, amt float64) Vector3
- func (a Vector3) MultiplyByConstant(by float64) Vector3
- func (a Vector3) MultiplyByVector(by Vector3) Vector3
- func (a Vector3) Normalise() Vector3
- func (a Vector3) Subtract(b Vector3) Vector3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Point ¶
type Point struct {
X, Y, Z int
}
func FromGandalfPoint ¶ added in v1.4.0
func FromGandalfPoint(point gandalf_geo.Point) Point
type PointWithColour ¶
type Vector2 ¶
type Vector2 struct {
X, Y float64
}
func (Vector2) DistanceSquared ¶
func (Vector2) DivideByVector ¶
func (Vector2) LengthSquared ¶
type Vector3 ¶
type Vector3 struct {
X, Y, Z float64
}
func (Vector3) DivideByConstant ¶
func (Vector3) DivideByVector ¶
func (Vector3) MultiplyByConstant ¶
func (Vector3) MultiplyByVector ¶
Click to show internal directories.
Click to hide internal directories.