public final class CohenSutherlandLineClipper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
android.graphics.RectF |
clipBounds |
Constructor and Description |
---|
CohenSutherlandLineClipper(android.graphics.RectF clipBounds)
Creates a new instance of
CohenSutherlandLineClipper class |
CohenSutherlandLineClipper(com.scichart.core.common.Size viewportSize)
Creates a new instance of
CohenSutherlandLineClipper class |
Modifier and Type | Method and Description |
---|---|
boolean |
clip(android.graphics.PointF start,
android.graphics.PointF end)
Performs clipping of the line specified by
start and end points |
public CohenSutherlandLineClipper(android.graphics.RectF clipBounds)
CohenSutherlandLineClipper
classclipBounds
- The clipping clipBoundspublic CohenSutherlandLineClipper(com.scichart.core.common.Size viewportSize)
CohenSutherlandLineClipper
classviewportSize
- The viewport sizepublic final boolean clip(android.graphics.PointF start, android.graphics.PointF end)
start
and end
pointsstart
- The start of the line to clipend
- The end of the line to clip