Documentation
¶
Index ¶
- func EpsEqual(f1, f2 float64) bool
- type Vector2D
- func (v Vector2D) Add(w Vector2D) Vector2D
- func (v Vector2D) DistTo(w Vector2D) float64
- func (v Vector2D) InnerProduct(w Vector2D) float64
- func (v Vector2D) LeftAngleTo(w Vector2D) float64
- func (v Vector2D) Mult(f float64) Vector2D
- func (v Vector2D) Norm() float64
- func (v Vector2D) RightAngleTo(w Vector2D) float64
- func (v Vector2D) RightAngleToXAxis() float64
- func (v Vector2D) RotateBy(a float64) Vector2D
- func (v Vector2D) String() string
- func (v Vector2D) Sub(w Vector2D) Vector2D
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Vector2D ¶
type Vector2D struct {
X, Y float64
}
func (Vector2D) InnerProduct ¶
func (Vector2D) LeftAngleTo ¶
func (Vector2D) RightAngleTo ¶
func (Vector2D) RightAngleToXAxis ¶
Click to show internal directories.
Click to hide internal directories.