예제 #1
0
파일: vector3.cpp 프로젝트: OEP/raytrace
vector3 vector3::operator-(vector3 other)
{
	return vector3(m_X - other.getX(),
		m_Y - other.getY(),
		m_Z - other.getZ());
}
예제 #2
0
파일: vector3.cpp 프로젝트: OEP/raytrace
double vector3::operator*(vector3 other)
{
	return m_X * other.getX() + m_Y * other.getY() + m_Z + other.getZ();
}
예제 #3
0
파일: vector3.cpp 프로젝트: OEP/raytrace
vector3 vector3::operator+(vector3 other)
{
	return vector3(m_X + other.getX(),
		m_Y + other.getY(),
		m_Z + other.getZ());
}