]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.proconf.g3d/src/org/simantics/proconf/g3d/animation/ConstantInterpolator.java
latest release (0.41), third attempt
[simantics/3d.git] / org.simantics.proconf.g3d / src / org / simantics / proconf / g3d / animation / ConstantInterpolator.java
1 /*******************************************************************************\r
2  * Copyright (c) 2007 VTT Technical Research Centre of Finland and others.\r
3  * All rights reserved. This program and the accompanying materials\r
4  * are made available under the terms of the Eclipse Public License v1.0\r
5  * which accompanies this distribution, and is available at\r
6  * http://www.eclipse.org/legal/epl-v10.html\r
7  *\r
8  * Contributors:\r
9  *     VTT Technical Research Centre of Finland - initial API and implementation\r
10  *******************************************************************************/\r
11 package org.simantics.proconf.g3d.animation;\r
12 \r
13 public class ConstantInterpolator extends AbstractScalarInterpolator{\r
14     double constant;\r
15     \r
16     \r
17     public ConstantInterpolator(double constant) {\r
18         this.constant = constant;\r
19     }\r
20     \r
21     public double evaluate(double delta) {\r
22         return constant;\r
23     }\r
24     \r
25     \r
26 \r
27 }\r