Exemplo n.º 1
0
 @Override
 public Vector3f getValue(Vector3f result) {
   return result.set(
       FloatMath.random(minimum.x, maximum.x),
       FloatMath.random(minimum.y, maximum.y),
       FloatMath.random(minimum.z, maximum.z));
 }
Exemplo n.º 2
0
 @Override
 public Vector3f getMean(Vector3f result) {
   return minimum.add(maximum, result).multLocal(0.5f);
 }
Exemplo n.º 3
0
 /** Creates a uniform variable from the parameters of the other variable. */
 public Uniform(VectorVariable variable) {
   maximum.set(variable.getMean(minimum));
 }
Exemplo n.º 4
0
 @Override
 public Vector3f getMean(Vector3f result) {
   return result.set(value);
 }