Package com.hypixel.hytale.math.shape
Class ViewUtil
java.lang.Object
com.hypixel.hytale.math.shape.ViewUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidCohenSutherlandLineClipAndDraw(double x0, double y0, double x1, double y1, Graphics2D graphics2D, double width, double height) private static intcomputeOutCode(double x, double y)
-
Field Details
-
INSIDE
public static final int INSIDE- See Also:
-
LEFT
public static final int LEFT- See Also:
-
RIGHT
public static final int RIGHT- See Also:
-
BOTTOM
public static final int BOTTOM- See Also:
-
TOP
public static final int TOP- See Also:
-
-
Constructor Details
-
ViewUtil
private ViewUtil()
-
-
Method Details
-
computeOutCode
private static int computeOutCode(double x, double y) -
CohenSutherlandLineClipAndDraw
private static void CohenSutherlandLineClipAndDraw(double x0, double y0, double x1, double y1, Graphics2D graphics2D, double width, double height)
-