Example #1
0
		BasicVec<Data> operator%(const BasicVec<DataT2>& rhs) const
		{
			return BasicVec<Data>(
				y()*rhs.z() - z()*rhs.y(),
				z()*rhs.y() - y()*rhs.z(),
				x()*rhs.y() - y()*rhs.z()
			);
		}
Example #2
0
		BasicVec<Data> operator+(const BasicVec<DataT2>& rhs) const
		{
			return BasicVec<Data>(
				x() + rhs.x(),
				y() + rhs.y(),
				z() + rhs.z()
			);
		}