src/mathematics/Vector2.cpp
Vector2 Vector2::getOneUnitOrthogonalVector() const {

    decimal l = length();
    assert(l > MACHINE_EPSILON);

    return Vector2(-y / l, x / l);
}
// Return one unit orthogonal vector of the current vector
Return one unit orthogonal vector of the current vector
Return one unit orthogonal vector of the current vector
Vector2 Vector2::getOneUnitOrthogonalVector() const {
    decimal l = length();
    assert(l > MACHINE_EPSILON);
    return Vector2(-y / l, x / l);
}
Vector2 Vector2 :: getOneUnitOrthogonalVector ( ) const { decimal l = length ( ) ; assert ( l > MACHINE_EPSILON ) ; return Vector2 ( - y / l , x / l ) ; }
Return one unit orthogonal vector of the current vector
Return one unit orthogonal vector of the current vector