/** * Generates the arc lengths, generates the reverse table if the * {@link #setRepeatType(com.ardor3d.scenegraph.controller.ComplexSpatialController.RepeatType) repeat type} is set * to {@link ComplexSpatialController.RepeatType#CYCLE cycle} * * @param step * 'See Also:' method for more info. * @see #generateArcLengths(int, boolean) */ public void generateArcLengths(final int step) { generateArcLengths(step, RepeatType.CYCLE.equals(getRepeatType())); }
/** * Generates the arc lengths, generates the reverse table if the * {@link #setRepeatType(com.ardor3d.scenegraph.controller.ComplexSpatialController.RepeatType) repeat type} is set * to {@link ComplexSpatialController.RepeatType#CYCLE cycle} * * @param step * 'See Also:' method for more info. * @see #generateArcLengths(int, boolean) */ public void generateArcLengths(final int step) { generateArcLengths(step, RepeatType.CYCLE.equals(getRepeatType())); }
/** * @return The initial control point, will not be <code>null</code>. */ protected ReadOnlyVector3 getControlPointStart() { ReadOnlyVector3 control = null; final int fromIndex = getIndex(); switch (getRepeatType()) { case CLAMP: control = getControls().get(fromIndex - 1); break; case CYCLE: if (isCycleForward()) { control = getControls().get(fromIndex - 1); } else { control = getControls().get(fromIndex + 1); } break; case WRAP: control = getControls().get(fromIndex - 1); break; } return control; }
/** * @return The final control point, will not be <code>null</code>. */ protected ReadOnlyVector3 getCotnrolPointEnd() { ReadOnlyVector3 control = null; final int toIndex = getIndex(); switch (getRepeatType()) { case CLAMP: control = getControls().get(toIndex + 2); break; case CYCLE: if (isCycleForward()) { control = getControls().get(toIndex + 2); } else { control = getControls().get(toIndex - 2); } break; case WRAP: control = getControls().get(toIndex + 2); break; } return control; }
/** * @return The initial control point, will not be <code>null</code>. */ protected ReadOnlyVector3 getControlPointStart() { ReadOnlyVector3 control = null; final int fromIndex = getIndex(); switch (getRepeatType()) { case CLAMP: control = getControls().get(fromIndex - 1); break; case CYCLE: if (isCycleForward()) { control = getControls().get(fromIndex - 1); } else { control = getControls().get(fromIndex + 1); } break; case WRAP: control = getControls().get(fromIndex - 1); break; } return control; }
/** * @return The final control point, will not be <code>null</code>. */ protected ReadOnlyVector3 getCotnrolPointEnd() { ReadOnlyVector3 control = null; final int toIndex = getIndex(); switch (getRepeatType()) { case CLAMP: control = getControls().get(toIndex + 2); break; case CYCLE: if (isCycleForward()) { control = getControls().get(toIndex + 2); } else { control = getControls().get(toIndex - 2); } break; case WRAP: control = getControls().get(toIndex + 2); break; } return control; }