/** * Generate the middle Point between two poits A and B * * @param A the first Point * @param B the second Point * @return the middle Point * @throws ArrayIndexOutOfBoundsException */ public static SFValuenf middle(SFValuenf A, SFValuenf B) throws ArrayIndexOutOfBoundsException { SFValuenf value = new SFValuenf(A.getV().length); for (int i = 0; i < A.getV().length; i++) { value.getV()[i] = (A.getV()[i] + B.getV()[i]) * 0.5f; } return value; }
/** * @deprecated please, create a new vertex than call set or set2f * <p>Generate a clone of this Value * @param value the Value to be Added * @throws ArrayIndexOutOfBoundsException */ public SFValuenf cloneValue() { SFValuenf v = new SFValuenf(this.getV().length); v.set(this); return v; }