/** * <code>getColumn</code> returns one of three rows as specified by the * parameter. This row is returned as a <code>Vector3f</code> object. * * @param i * the row to retrieve. Must be between 0 and 2. * @return the row specified by the index. */ public Vector3f getRow(int i) { return getRow(i, null); }
maxRowStore.set(matrix.getRow(iMaxRow));
/** * <code>getColumn</code> returns one of three rows as specified by the * parameter. This row is returned as a <code>Vector3f</code> object. * * @param i * the row to retrieve. Must be between 0 and 2. * @return the row specified by the index. */ public Vector3f getRow(int i) { return getRow(i, null); }
/** * <code>getColumn</code> returns one of three rows as specified by the * parameter. This row is returned as a <code>Vector3f</code> object. * * @param i * the row to retrieve. Must be between 0 and 2. * @return the row specified by the index. */ public Vector3f getRow(int i) { return getRow(i, null); }
maxRowStore.set(matrix.getRow(iMaxRow));
maxRowStore.set(matrix.getRow(iMaxRow));
private void pushMatrix(Transform transform, DAENode node, MeasuringUnit unit) { TransformedValue<Matrix4f> matrix = node.getContent(MatrixTransformer.create()); if (matrix.isDefined()) { Vector3f vec = matrix.get().toTranslationVector().mult(unit.getMeter()); Matrix3f rotation = matrix.get().toRotationMatrix(); Vector3f scale = new Vector3f(rotation.getRow(0).length(), rotation.getRow(1).length(), rotation.getRow(2).length()); Transform t = new Transform(vec, matrix.get().toRotationQuat(), scale); t = t.combineWithParent(transform); transform.set(t); } else { Todo.task("where is my matrix?"); } }