SetVector3 sets this vector from another Vector3 and W
(other *Vector3, w float32)
| 37 | |
| 38 | // SetVector3 sets this vector from another Vector3 and W |
| 39 | func (v *Vector4) SetVector3(other *Vector3, w float32) *Vector4 { |
| 40 | |
| 41 | v.X = other.X |
| 42 | v.Y = other.Y |
| 43 | v.Z = other.Z |
| 44 | v.W = w |
| 45 | return v |
| 46 | } |
| 47 | |
| 48 | // SetX sets this vector X component. |
| 49 | // Returns the pointer to this updated Vector. |