Documentation
¶
Index ¶
- type Point
- type Vector
- func (v *Vector) Angle(other *Vector) float64
- func (v *Vector) AngleDegree(other *Vector) float64
- func (c *Vector) AngleRadian(other *Vector) float64
- func (v *Vector) CrossProduct(other *Vector) *Point
- func (v *Vector) DirectionVectorFromOrigin() *Point
- func (v *Vector) DotProduct(other *Vector) float64
- func (v *Vector) GetEnd() *Point
- func (v *Vector) GetStart() *Point
- func (v *Vector) Length() float64
- func (v *Vector) Magnitude() float64
- func (v *Vector) Project(other *Vector) *Vector
- func (v *Vector) String() string
- func (v *Vector) UnitVector() *Point
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vector ¶
type Vector struct {
// contains filtered or unexported fields
}
func (*Vector) AngleDegree ¶ added in v1.0.2
func (*Vector) AngleRadian ¶ added in v1.0.2
func (*Vector) CrossProduct ¶
func (*Vector) DirectionVectorFromOrigin ¶ added in v1.0.2
func (*Vector) DotProduct ¶
func (*Vector) UnitVector ¶
Click to show internal directories.
Click to hide internal directories.