Documentation ¶
Index ¶
- func Distance[Type Number](lhs, rhs V2d[Type]) (answer float64)
- type Number
- type V2d
- func Add[Type Number](lhs, rhs V2d[Type]) (answer V2d[Type])
- func Divide[Type Number](lhs, rhs V2d[Type]) (answer V2d[Type])
- func Multiply[Type Number](lhs, rhs V2d[Type]) (answer V2d[Type])
- func NewVec[Type Number](x, y Type) *V2d[Type]
- func ScalarMultiplication[Type Number](lhs V2d[Type], scalar Type) (answer V2d[Type])
- func Subtract[Type Number](lhs, rhs V2d[Type]) (answer V2d[Type])
- type Vf2d
- type Vi2d
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Number ¶
type Number interface { constraints.Integer | constraints.Float }
Click to show internal directories.
Click to hide internal directories.