// Copyright © 2011 - 2013 Forerunner Games
package com.forerunnergames.tools;

/**
 *
 * @author Aaron Mahan
 */
public class Translation2D
{
  public Translation2D (Point2D point2d)
  {
    Arguments.checkIsNotNull (point2d, "point2d");

    point2d_ = point2d;
  }

  public Translation2D (int translationX, int translationY)
  {
    point2d_ = new Point2D (translationX, translationY);
  }

  public Point2D getPoint2D()
  {
    assert point2d_ != null;

    return point2d_;
  }

  public int getX()
  {
    assert point2d_ != null;

    return point2d_.getX();
  }

  public int getY()
  {
    assert point2d_ != null;

    return point2d_.getY();
  }

  @Override
  public String toString()
  {
    assert point2d_ != null;

    return getClass().getSimpleName() + ": " + point2d_;
  }

  private Translation2D()
  {
    ClassUtils.defaultConstructorNotSupported();
  }

  Point2D point2d_;
}

@@ -140,134 +140,8 @@
 D%0A%7B%0A
-  public Translation2D (Point2D point2d)%0A  %7B%0A    Arguments.checkIsNotNull (point2d, %22point2d%22);%0A%0A    point2d_ = point2d;%0A  %7D%0A%0A
   pu
@@ -208,32 +208,8 @@
     
-point2d_ = new Point2D (
 tran
@@ -216,17 +216,19 @@
 slationX
-,
+_ =
  transla
@@ -235,100 +235,43 @@
 tion
-Y)
+X
 ;%0A  
-%7D%0A%0A  public Point2D getPoint2D()%0A  %7B%0A    assert point2d
+  translationY
 _ 
-!
 = 
-null;%0A%0A    return point2d_
+translationY
 ;%0A  
@@ -305,282 +305,263 @@
     
-assert point2d_ != null;%0A%0A    return point2d_.getX();%0A  %7D%0A%0A  public int getY()%0A  %7B%0A    assert point2d_ != null;%0A%0A    return point2d_.getY();%0A  %7D%0A%0A  @Override%0A  public String toString()%0A  %7B%0A    assert point2d_ != null;%0A%0A    return getClass().getSimpleName() + %22: %22 + point2d_
+return translationX_;%0A  %7D%0A%0A  public int getY()%0A  %7B%0A    return translationY_;%0A  %7D%0A%0A  @Override%0A  public String toString()%0A  %7B%0A    return String.format (getClass().getSimpleName() + %22: (%251$6s, %252$62)%22,%0A                          translationX_, translationY_)
 ;%0A  
@@ -653,23 +653,45 @@
 %0A%0A  
-Po
 int
-2D point2d
+ translationX_;%0A  int translationY
 _;%0A%7D

Remove Point2D functionality from Translation2D.