Set sets this vector X, Y, Z and W components. Returns the pointer to this updated vector.
(x, y, z, w float32)
| 27 | // Set sets this vector X, Y, Z and W components. |
| 28 | // Returns the pointer to this updated vector. |
| 29 | func (v *Vector4) Set(x, y, z, w float32) *Vector4 { |
| 30 | |
| 31 | v.X = x |
| 32 | v.Y = y |
| 33 | v.Z = z |
| 34 | v.W = w |
| 35 | return v |
| 36 | } |
| 37 | |
| 38 | // SetVector3 sets this vector from another Vector3 and W |
| 39 | func (v *Vector4) SetVector3(other *Vector3, w float32) *Vector4 { |
no outgoing calls
no test coverage detected