com.partnersoft.maps.render
Class Clipper

java.lang.Object
  extended by com.partnersoft.maps.render.Clipper

public class Clipper
extends java.lang.Object

Cohen-Sutherland Line-Clipping. copied out of Foley, van Dam, et al Computer Graphics, Principles and Practice pg 113 Otherwise Copyright 2004 Partner Software, Inc.


Field Summary
 boolean accept
           
 float x0
           
 float x1
           
 float xmax
           
 float xmin
           
 float y0
           
 float y1
           
 float ymax
           
 float ymin
           
 
Constructor Summary
Clipper()
           
 
Method Summary
 void clip(float in_x0, float in_y0, float in_x1, float in_y1)
           
 void setRectangle(float in_xmin, float in_xmax, float in_ymin, float in_ymax)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

accept

public boolean accept

xmin

public float xmin

xmax

public float xmax

ymin

public float ymin

ymax

public float ymax

x0

public float x0

y0

public float y0

x1

public float x1

y1

public float y1
Constructor Detail

Clipper

public Clipper()
Method Detail

setRectangle

public void setRectangle(float in_xmin,
                         float in_xmax,
                         float in_ymin,
                         float in_ymax)

clip

public void clip(float in_x0,
                 float in_y0,
                 float in_x1,
                 float in_y1)