Copy copies other vector to this one. It is equivalent to: *v = *other. Returns the pointer to this updated vector.
(other *Vector2)
| 108 | // It is equivalent to: *v = *other. |
| 109 | // Returns the pointer to this updated vector. |
| 110 | func (v *Vector2) Copy(other *Vector2) *Vector2 { |
| 111 | |
| 112 | v.X = other.X |
| 113 | v.Y = other.Y |
| 114 | return v |
| 115 | } |
| 116 | |
| 117 | // Add adds other vector to this one. |
| 118 | // Returns the pointer to this updated vector. |
no outgoing calls
no test coverage detected