
barsuift.simLife.j3d.tree.TreeBranchPart3DState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simLifeDisplayAPI Show documentation
Show all versions of simLifeDisplayAPI Show documentation
API of the display module for the simLife project
/**
* barsuift-simlife is a life simulator programm
*
* Copyright (C) 2010 Cyrille GACHOT
*
* This file is part of barsuift-simlife.
*
* barsuift-simlife is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* barsuift-simlife is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with barsuift-simlife. If not, see
* .
*/
package barsuift.simLife.j3d.tree;
import javax.xml.bind.annotation.XmlRootElement;
import barsuift.simLife.j3d.Point3dState;
@XmlRootElement
public class TreeBranchPart3DState {
private Point3dState endPoint;
public TreeBranchPart3DState() {
super();
this.endPoint = new Point3dState();
}
public TreeBranchPart3DState(Point3dState endPoint) {
super();
this.endPoint = endPoint;
}
public TreeBranchPart3DState(TreeBranchPart3DState copy) {
super();
this.endPoint = new Point3dState(copy.endPoint);
}
public Point3dState getEndPoint() {
return endPoint;
}
public void setEndPoint(Point3dState endPoint) {
this.endPoint = endPoint;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((endPoint == null) ? 0 : endPoint.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
TreeBranchPart3DState other = (TreeBranchPart3DState) obj;
if (endPoint == null) {
if (other.endPoint != null)
return false;
} else
if (!endPoint.equals(other.endPoint))
return false;
return true;
}
@Override
public String toString() {
return "TreeBranchPart3DState [endPoint=" + endPoint + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy