public class LineClipper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BOTTOM |
static int |
INSIDE |
static int |
LEFT |
float |
outX1 |
float |
outX2 |
float |
outY1 |
float |
outY2 |
static int |
RIGHT |
static int |
TOP |
| Constructor and Description |
|---|
LineClipper(float minx,
float miny,
float maxx,
float maxy) |
| Modifier and Type | Method and Description |
|---|---|
int |
clipLine(GeometryBuffer in,
GeometryBuffer out) |
int |
clipNext(float x1,
float y1) |
int |
clipSegment(float x1,
float y1,
float x2,
float y2) |
boolean |
clipStart(float x0,
float y0) |
float[] |
getLine(float[] out,
int offset) |
int |
getPrevOutcode() |
int |
outcode(float x,
float y) |
void |
setRect(float minx,
float miny,
float maxx,
float maxy) |
public static final int INSIDE
public static final int LEFT
public static final int RIGHT
public static final int BOTTOM
public static final int TOP
public float outX1
public float outY1
public float outX2
public float outY2
public void setRect(float minx,
float miny,
float maxx,
float maxy)
public boolean clipStart(float x0,
float y0)
public int outcode(float x,
float y)
public int clipNext(float x1,
float y1)
public int clipSegment(float x1,
float y1,
float x2,
float y2)
public float[] getLine(float[] out,
int offset)
public int getPrevOutcode()
public int clipLine(GeometryBuffer in, GeometryBuffer out)