com.partnersoft.geometry.xy
Interface XyTransform

All Known Implementing Classes:
AbstractXyTransform, LinearUnitTransform, ProjectionTransform, ReverseProjectionTransform, XyAffineTransform

public interface XyTransform

Generic type for coordinate transformations in (x, y) space.

Copyright 2007 Partner Software, Inc.

Version:
$Id: XyTransform.java 1012 2007-11-24 18:30:02Z paul $
Author:
Paul Reavis

Method Summary
 boolean isIdentity()
          True if this transform will return the input unchanged, and can therefore be skipped or discarded.
 java.util.List<XyPoint> transform(java.util.List<XyPoint> points)
          Transform a list of XyPoints.
 XyPoint[] transform(XyPoint... points)
          Transform an array of XyPoints.
 XyPoint transform(XyPoint point)
          Transform a single (x, y) point.
 

Method Detail

isIdentity

boolean isIdentity()
True if this transform will return the input unchanged, and can therefore be skipped or discarded.


transform

XyPoint transform(XyPoint point)
Transform a single (x, y) point.

Parameters:
point - point to transform.
Returns:
transformed result

transform

XyPoint[] transform(XyPoint... points)
Transform an array of XyPoints. Always returns a new array.

Parameters:
points - points to transform.
Returns:
transformed result

transform

java.util.List<XyPoint> transform(java.util.List<XyPoint> points)
Transform a list of XyPoints. Always returns a new, mutable list.

Parameters:
points - points to transform.
Returns:
transformed result