public class ViewUtil
Class ViewUtil. Provides viewutil functionality for the Hytale server.
java.lang.Object > ViewUtil
Field Summary
start
final
Vector2d
start
Field start.
vector2d
final
Vector2d
vector2d
Field vector2d.
outcodeOut
final
int
outcodeOut
Field outcodeOut.
Method Detail
ViewUtil
public
private
ViewUtil
()
Method ViewUtil.
computeOutCode
static
int
computeOutCode
(final double x, final double y)
Method computeOutCode.
- Parameters:
final doublexfinal doubley
if
public
else
if
(x > 1.0)
Method if.
- Parameters:
x >1.0
CohenSutherlandLineClipAndDraw
static
void
CohenSutherlandLineClipAndDraw
(double x0, double y0, double x1, double y1, final Graphics2D graphics2D, final double width, final double height)
Method CohenSutherlandLineClipAndDraw.
- Parameters:
doublex0doubley0doublex1doubley1final Graphics2Dgraphics2Dfinal doublewidthfinal doubleheight