4 * License : The MIT License
5 * Copyright(c) 2010 MikuToga Partners
8 package jp.sourceforge.mikutoga.math;
15 public class MkPos2D {
34 public MkPos2D(double xPosArg, double yPosArg){
45 public void setXpos(double xPosArg){
54 public double getXpos(){
62 public void setYpos(double yPosArg){
71 public double getYpos(){
80 public void setPosition(double xPosArg, double yPosArg){
90 public boolean isOriginPoint(){
91 if(this.xPos != 0.0) return false;
92 if(this.yPos != 0.0) return false;
98 * @return {@inheritDoc}
101 public String toString(){
102 StringBuilder result = new StringBuilder();
104 result.append("pos=[")
105 .append(this.xPos).append(", ")
106 .append(this.yPos).append(']');
108 return result.toString();