comparison game/Interpolate.java @ 134:4c0dec72e2f0

Whitespace cosmetic cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 24 Nov 2011 21:51:54 +0200
parents 41c6cca69d60
children d6d92845d6a2
comparison
equal deleted inserted replaced
133:881deac2daf8 134:4c0dec72e2f0
14 { 14 {
15 this.start = start; 15 this.start = start;
16 this.end = end; 16 this.end = end;
17 this.steps = steps; 17 this.steps = steps;
18 } 18 }
19 19
20 public float getValue(float step) 20 public float getValue(float step)
21 { 21 {
22 float n = step / steps; 22 float n = step / steps;
23 float v = n * n * (3.0f - 2.0f * n); 23 float v = n * n * (3.0f - 2.0f * n);
24 return (start * v) + (end * (1.0f - v)); 24 return (start * v) + (end * (1.0f - v));