Remove the isParallelWith() method in Vector3
This commit is contained in:
parent
a178a3c0b9
commit
bd0561acd9
|
@ -103,9 +103,6 @@ struct Vector3 {
|
|||
// Return the axis with the maximal value
|
||||
int getMaxAxis() const;
|
||||
|
||||
// Return true if two vectors are parallel
|
||||
bool isParallelWith(const Vector3& vector) const;
|
||||
|
||||
// Overloaded operator for the equality condition
|
||||
bool operator== (const Vector3& vector) const;
|
||||
|
||||
|
@ -184,14 +181,7 @@ inline void Vector3::normalize() {
|
|||
// Return the corresponding absolute value vector
|
||||
inline Vector3 Vector3::getAbsoluteVector() const {
|
||||
return Vector3(std::abs(x), std::abs(y), std::abs(z));
|
||||
}
|
||||
|
||||
// Return true if two vectors are parallel
|
||||
inline bool Vector3::isParallelWith(const Vector3& vector) const {
|
||||
decimal scalarProd = this->dot(vector);
|
||||
return approxEqual(std::abs(scalarProd), length() * vector.length());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Return the axis with the minimal value
|
||||
inline int Vector3::getMinAxis() const {
|
||||
|
|
Loading…
Reference in New Issue
Block a user