Documentation ¶
Index ¶
- type Force
- type ForceUpdater
- type Vector
- func (v *Vector) Absolute() float64
- func (v *Vector) Add(B *Vector) *Vector
- func (v *Vector) Copy() *Vector
- func (v *Vector) CrossProduct(B *Vector) *Vector
- func (v *Vector) DotProduct(B *Vector) (product float64)
- func (v *Vector) Equals(B *Vector) bool
- func (v *Vector) GetInfos() string
- func (v *Vector) GetRotationXY() (angle float64)
- func (v *Vector) IsFilled() bool
- func (v *Vector) Mul(num float64) *Vector
- func (v *Vector) Normalize() *Vector
- func (v *Vector) Rotate(axis *Vector, angle float64) *Vector
- func (v *Vector) RotateAbs(axis *Vector, angle float64) *Vector
- func (v *Vector) Sub(B *Vector) *Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Force ¶
func GetNewForce ¶
func GetNewForce(updater ForceUpdater, v *Vector) *Force
func GetNewPlainForce ¶
func GetNewPlainForce() *Force
func GetNewPlainForceAlwaysActive ¶
func GetNewPlainForceAlwaysActive() *Force
func GetNewPlainForceDir ¶
func (*Force) GetForceVec ¶
func (*Force) SetForceVec ¶
type ForceUpdater ¶
type ForceUpdater func(f *Force)
type Vector ¶
type Vector struct {
X, Y, Z float64
}
func (*Vector) CrossProduct ¶
func (*Vector) DotProduct ¶
func (*Vector) GetRotationXY ¶
Click to show internal directories.
Click to hide internal directories.