@{ * Return the cross product of this X other. */
| 270 | * Return the cross product of this X other. |
| 271 | */ |
| 272 | vtkVector3<T> Cross(const vtkVector3<T>& other) const |
| 273 | { |
| 274 | vtkVector3<T> res; |
| 275 | res[0] = this->Data[1] * other.Data[2] - this->Data[2] * other.Data[1]; |
| 276 | res[1] = this->Data[2] * other.Data[0] - this->Data[0] * other.Data[2]; |
| 277 | res[2] = this->Data[0] * other.Data[1] - this->Data[1] * other.Data[0]; |
| 278 | return res; |
| 279 | } |
| 280 | ///@} |
| 281 | |
| 282 | ///@{ |
no outgoing calls