suvi.util.geom
Class Geoms

java.lang.Object
  |
  +--suvi.util.geom.Geoms

public class Geoms
extends java.lang.Object

Static utility methods dealing with geometric objects.


Constructor Summary
Geoms()
           
 
Method Summary
static Matrix2x2 mul(Matrix2x2 lhs, Matrix2x2 rhs)
          The product of the matrices.
static BSpline transform(Matrix2x2 m, BSpline bspline)
          A new BSpline-object transformed by the matrix.
static java.awt.Point transform(Matrix2x2 m, java.awt.Point p)
          A new Point-object transformed by the matrix.
static java.awt.geom.Point2D transform(Matrix2x2 m, java.awt.geom.Point2D p)
           
static BSpline translate(BSpline bspline, java.awt.Dimension vector)
          A new BSpline with all control points translated by the vector.
static java.awt.geom.Point2D translate(java.awt.geom.Point2D point, java.awt.Dimension vector)
           
static java.awt.Point translate(java.awt.Point point, java.awt.Dimension vector)
           return new Point(point.x + vector.width, point.y + vector.height);
static java.awt.Rectangle translate(java.awt.Rectangle rect, java.awt.Dimension vector)
           return new Rectangle(translate(rect.getLocation(), vector), rect.getSize());
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Geoms

public Geoms()
Method Detail

translate

public static java.awt.Point translate(java.awt.Point point,
                                       java.awt.Dimension vector)
 return new Point(point.x + vector.width,
                  point.y + vector.height);
 


translate

public static java.awt.geom.Point2D translate(java.awt.geom.Point2D point,
                                              java.awt.Dimension vector)

translate

public static java.awt.Rectangle translate(java.awt.Rectangle rect,
                                           java.awt.Dimension vector)
 return new Rectangle(translate(rect.getLocation(), vector),
                      rect.getSize());
 


translate

public static BSpline translate(BSpline bspline,
                                java.awt.Dimension vector)

A new BSpline with all control points translated by the vector.


mul

public static Matrix2x2 mul(Matrix2x2 lhs,
                            Matrix2x2 rhs)

The product of the matrices.


transform

public static java.awt.Point transform(Matrix2x2 m,
                                       java.awt.Point p)

A new Point-object transformed by the matrix.


transform

public static java.awt.geom.Point2D transform(Matrix2x2 m,
                                              java.awt.geom.Point2D p)

transform

public static BSpline transform(Matrix2x2 m,
                                BSpline bspline)

A new BSpline-object transformed by the matrix.