Documentation
¶
Overview ¶
Package vector provides simple operations on 3d vector required for 3DF trajectory calculation
Index ¶
- type Vector
- func (v Vector) Add(b Vector) Vector
- func (v Vector) Copy() Vector
- func (v Vector) Magnitude() float64
- func (v Vector) MultiplyByConst(a float64) Vector
- func (v Vector) MultiplyByVector(b Vector) float64
- func (v Vector) Negate() Vector
- func (v Vector) Normalize() Vector
- func (v Vector) String() string
- func (v Vector) Subtract(b Vector) Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vector ¶
Vector struct keeps data about a 3D vector
func (Vector) Magnitude ¶
Magnitude retruns a magnitude of the vector
The magnitude of the vector is the length of a line that starts in point (0,0,0) and ends in the point set by the vector coordinates
func (Vector) MultiplyByConst ¶
MultiplyByConst multiplies the vector by the constant
func (Vector) MultiplyByVector ¶
MultiplyByVector returns a product of two vectors
The product of two vectors is a sum of products of each coordinate
Click to show internal directories.
Click to hide internal directories.