public void setColor(Color color) { this.color = color; for (Point p : points) p.setColor(color); fireDrawableChanged(new DrawableChangedEvent(this, DrawableChangedEvent.FIELD_COLOR)); }
@Override public int compare(Point mp1, Point mp2) { // TODO Auto-generated method stub double distance1 = mp1.getCoord().distance(point.xyz); double distance2 = mp2.getCoord().distance(point.xyz); if (distance1 < distance2) return -1; else if (distance1 == distance2) return 0; else return 1; }
public void applyGeometryTransform(Transform transform) { for (Point p : points) { p.xyz = transform.compute(p.xyz); } updateBounds(); }