/** * Note: data is cast to floats. * * @param store * the buffer to read our matrix data from. * @return this matrix for chaining. */ public Matrix3 fromFloatBuffer(final FloatBuffer source) { return fromFloatBuffer(source, true); }
/** * Note: data is cast to floats. * * @param store * the buffer to read our matrix data from. * @return this matrix for chaining. */ public Matrix3 fromFloatBuffer(final FloatBuffer source) { return fromFloatBuffer(source, true); }
fb.flip(); final Matrix3 mat3A = new Matrix3().fromFloatBuffer(fb); assertTrue(0 == mat3A.getM00()); assertTrue(1 == mat3A.getM01()); mat3A.fromFloatBuffer(fb, false); assertTrue(0 == mat3A.getM00()); assertTrue(3 == mat3A.getM01());