예제 #1
0
 bool operator!=(const R3Vector& lhs, const R3Vector& rhs)
 {
	 return (lhs.x() != rhs.x() || lhs.y() != rhs.y() || lhs.z() != rhs.z());
 }
예제 #2
0
 R3Vector R3Vector::VecMult(const R3Vector& lhs, const R3Vector& rhs)
 {
	 return R3Vector(lhs.y()*rhs.z() - lhs.z()*rhs.y(), lhs.z()*rhs.x() - lhs.x()*rhs.z(), lhs.x()*rhs.y() - lhs.y()*rhs.x());
 }
예제 #3
0
 bool operator==(const R3Vector& lhs, const R3Vector& rhs)
 {
	 return (lhs.x()==rhs.x() && lhs.y()==rhs.y() && lhs.z()==rhs.z());
 }