app/src/main/java/com/example/administrator/newmovie/Utils/Geometry.java
/**
     * Checks if a point is right of a line. If the point is on the
     * line, it is not right of the line.
     *
     * @param a line segment interpreted as a line
     * @param b the point
     * @return <code>true</code> if the point is right of the line,
     * <code>false</code> otherwise
     */
Checks if a point is right of a line. If the point is on the
line, it is not right of the line.

@param a line segment interpreted as a line
@param b the point
@return true if the point is right of the line,
false otherwise
Checks if a point is right of a line . If the point is on the line it is not right of the line . @param a line segment interpreted as a line @param b the point @return true if the point is right of the line false otherwise
public static boolean isPointRightOfLine(LineSegment a, Point b) {
        LineSegment aTmp = new LineSegment(new Point(0, 0), new Point(
                a.second.x - a.first.x, a.second.y - a.first.y));
        Point bTmp = new Point(b.x - a.first.x, b.y - a.first.y);
        return crossProduct(aTmp.second, bTmp) < 0;
    }
public static boolean isPointRightOfLine ( LineSegment a , Point b ) { LineSegment aTmp = new LineSegment ( new Point ( 0 , 0 ) , new Point ( a . second . x - a . first . x , a . second . y - a . first . y ) ) ; Point bTmp = new Point ( b . x - a . first . x , b . y - a . first . y ) ; return crossProduct ( aTmp . second , bTmp ) < 0 ; }
Checks if a point is right of a line.
Checks if a point is right of a line .
// Move the image, so that a.first is on (0|0)