NewVector2 creates and returns a pointer to a new Vector2 with the specified x and y components
(x, y float32)
| 13 | // NewVector2 creates and returns a pointer to a new Vector2 with |
| 14 | // the specified x and y components |
| 15 | func NewVector2(x, y float32) *Vector2 { |
| 16 | |
| 17 | return &Vector2{X: x, Y: y} |
| 18 | } |
| 19 | |
| 20 | // NewVec2 creates and returns a pointer to a new zero-ed Vector2. |
| 21 | func NewVec2() *Vector2 { |
no outgoing calls
no test coverage detected