Interface Mapping2D

All Superinterfaces:
Cloneable
All Known Implementing Classes:
AffineMapping2D, BilinearMapping2D, LinearMapping2D, LogPolarMapping1, LogPolarMapping2, ProjectiveMapping2D, Rotation2D, Scaling2D, Shear2D, Translation2D

public interface Mapping2D extends Cloneable
Common interface to be implemented by all (linear and nonlinear) 2D mappings.
  • Method Summary

    Modifier and Type
    Method
    Description
    Applies this mapping to a single 2D point.
    default Pnt2d[]
    applyTo(Pnt2d[] pnts)
    Applies this mapping to an array of 2D points and returns a new array of points.
  • Method Details

    • applyTo

      Applies this mapping to a single 2D point.
      Parameters:
      pnt - the original point
      Returns:
      the transformed point
    • applyTo

      default Pnt2d[] applyTo(Pnt2d[] pnts)
      Applies this mapping to an array of 2D points and returns a new array of points.
      Parameters:
      pnts - the original points
      Returns:
      the transformed points