示例#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());
}