Week7 [09/11] - [11/11]
Added Backface Culling Methods to the Model Class Added Depth, Normal and Culled Flag Variables to the Polygon3D Class Added Vector3D Class Added - operator to the Vertex Class Cleaned up Code, Adding Void to Params etc
This commit is contained in:
@ -88,6 +88,11 @@ Vertex& Vertex::operator=(const Vertex& rhs)
|
||||
return *this;
|
||||
}
|
||||
|
||||
const Vector3D Vertex::operator-(const Vertex& rhs) const
|
||||
{
|
||||
return Vector3D(rhs.GetX() - GetX(), rhs.GetY() - GetY(), rhs.GetZ() - GetZ());
|
||||
}
|
||||
|
||||
// The const at the end of the declaraion for '==" indicates that this operation does not change
|
||||
// any of the member variables in this class.
|
||||
|
||||
|
Reference in New Issue
Block a user