/* * Moonlight|3D Copyright (C) 2005 The Moonlight|3D team * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library 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 Lesser General Public License for more * details. * * You should have received a copy of the GNU Lesser General Public License * along with this library; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * Created on Jan 5, 2005 */ package ml.backend.sg; import ml.math.AxisAlignedBoundingBox; import ml.math.Matrix3; import ml.math.Matrix4; import ml.math.Vector3D; /** * This class implements the root scene graph node type. * * @author gregor */ public class Root extends TransformableNode { /* (non-Javadoc) * @see ml.backend.sg.Node#applyMatrix(ml.math.Matrix3) */ @Override public void applyMatrix(Matrix3 matrix) { for(int i=0;inewIntersection.sub(ray.start).abs()) { intersection=newIntersection; distance=intersection.sub(ray.start).abs(); } } } } return intersection; } public boolean isValidAppendixName(String appendix) { return false; } public Object getFromAppendix(String appendix) { return null; } @Override public String getType() { return "Root"; } }