@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)); }
@Override public Vector3f getMean(Vector3f result) { return minimum.add(maximum, result).multLocal(0.5f); }
/** Creates a uniform variable from the parameters of the other variable. */ public Uniform(VectorVariable variable) { maximum.set(variable.getMean(minimum)); }
@Override public Vector3f getMean(Vector3f result) { return result.set(value); }