Sub subtracts other vector from this one. Returns the pointer to this updated vector.
(other *Vector3)
| 156 | // Sub subtracts other vector from this one. |
| 157 | // Returns the pointer to this updated vector. |
| 158 | func (v *Vector3) Sub(other *Vector3) *Vector3 { |
| 159 | |
| 160 | v.X -= other.X |
| 161 | v.Y -= other.Y |
| 162 | v.Z -= other.Z |
| 163 | return v |
| 164 | } |
| 165 | |
| 166 | // SubScalar subtracts scalar s from each component of this vector. |
| 167 | // Returns the pointer to this updated vector. |
no outgoing calls
no test coverage detected