Write to an indexed element.
(i int, value float64)
| 77 | |
| 78 | /// Write to an indexed element. |
| 79 | func (v *B2Vec2) OperatorIndexSet(i int, value float64) { |
| 80 | if i == 0 { |
| 81 | v.X = value |
| 82 | } |
| 83 | |
| 84 | v.Y = value |
| 85 | } |
| 86 | |
| 87 | /// Add a vector to this vector. |
| 88 | func (v *B2Vec2) OperatorPlusInplace(other B2Vec2) { |