2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2009-2012 - DIGITEO - Pierre Lando
5 * This file must be used under the terms of the CeCILL.
6 * This source file is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
12 package org.scilab.modules.renderer.JoGLView.interaction.util;
14 import org.scilab.forge.scirenderer.tranformations.Vector3d;
15 import org.scilab.modules.graphic_objects.axes.Axes;
17 import java.awt.Point;
20 * This class compute the coordinate of a point on the box surface.
21 * The point correspond to a mouse coordinate.
22 * @author Pierre Lando
24 public class PointAComputer extends CubeFacesPointComputer implements PointComputer {
29 * @param axes box axes.
30 * @param point screen point.
32 public PointAComputer(final Axes axes, final Point point) {
37 public final boolean isValid() {
38 return getPosition() != null;
42 public final int getFirstAxisIndex() {
43 return getAxisIndex();
47 public final Vector3d getFirstPosition() {
52 public final Vector3d getSecondPosition() {
57 public boolean is2D() {