2 * Sixth 3D engine. Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of version 3 of the GNU Lesser General Public License
6 * or later as published by the Free Software Foundation.
10 package eu.svjatoslav.sixth.e3d.geometry;
12 public class TransformPipe {
14 Transform[] transforms = new Transform[100];
16 private int transformsCount = 0;
18 public void addTransform(final Transform transform) {
19 transforms[transformsCount] = transform;
27 public void dropTransform() {
31 public void transform(final Point3D source, final Point3D destination) {
33 destination.clone(source);
35 for (int i = transformsCount - 1; i >= 0; i--)
36 transforms[i].transform(destination);