public boolean isPointBehindLine(Point2d point) { return !isPointInFrontOfLine(point); }
/** * isPointInFrontOfLine returns whether the point is in front of the line or * not. The front direction is defined as the positive x-direction * * @param point Point2d * @return boolean */ public boolean isPointInFrontOfLine(Point2d point) { return isPointInFrontOfLine(point.getX(), point.getY()); }
/** * isPointInFrontOfLine * returns whether the point is in front of the line or not. The front * direction is defined as the positive x-direction * * @param point FramePoint2d * @return boolean */ public boolean isPointInFrontOfLine(FramePoint2d point) { checkReferenceFrameMatch(point); return this.line.isPointInFrontOfLine(point.getPointCopy()); }
public boolean isPointInFrontOfLine(FrameVector2d frontDirection, FramePoint2d framePoint) { checkReferenceFrameMatch(frontDirection); checkReferenceFrameMatch(framePoint); return line.isPointInFrontOfLine(frontDirection.getVector(), framePoint.getPoint()); }