Documentation
¶
Index ¶
- func RotateVect(v vect.Vect, r Rotation) vect.Vect
- func RotateVectInv(v vect.Vect, r Rotation) vect.Vect
- func RotateVectPtr(v *vect.Vect, r *Rotation) vect.Vect
- type Rotation
- type Transform
- func (xf Transform) MarshalJSON() ([]byte, error)
- func (xf *Transform) Set(pos vect.Vect, rot vect.Float)
- func (xf *Transform) SetIdentity()
- func (xf *Transform) TransformVect(v vect.Vect) vect.Vect
- func (xf *Transform) TransformVectInv(v vect.Vect) vect.Vect
- func (xf *Transform) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Rotation ¶
func NewRotation ¶
func (*Rotation) RotateVect ¶
rotates the input vector.
func (*Rotation) RotateVectPtr ¶
rotates the input vector.
func (*Rotation) SetIdentity ¶
func (rot *Rotation) SetIdentity()
type Transform ¶
func (Transform) MarshalJSON ¶
func (*Transform) SetIdentity ¶
func (xf *Transform) SetIdentity()
func (*Transform) TransformVect ¶
moves and roates the input vector.
func (*Transform) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.