Set sets the values of the array starting at the specified pos from the specified values
(pos int, v ...float32)
| 154 | // Set sets the values of the array starting at the specified pos |
| 155 | // from the specified values |
| 156 | func (a ArrayF32) Set(pos int, v ...float32) { |
| 157 | |
| 158 | for i := 0; i < len(v); i++ { |
| 159 | a[pos+i] = v[i] |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | // SetVector2 sets the values of the array at the specified pos |
| 164 | // from the XY values of the specified Vector2 |