Search in sources :

Example 6 with LinealEditor

use of com.revolsys.geometry.model.editor.LinealEditor in project com.revolsys.open by revolsys.

the class MultiLineStringEditorTest method testSetM.

@Test
public void testSetM() {
    final LinealEditor editor = LINEAL.newGeometryEditor(4);
    editor.setM(1, 1, 10);
    final Lineal newGeometry = editor.newGeometry();
    Assert.assertNotSame(LINEAL, newGeometry);
    Assert.assertEquals(10.0, newGeometry.getM(1, 1), 0.0);
}
Also used : LinealEditor(com.revolsys.geometry.model.editor.LinealEditor) Lineal(com.revolsys.geometry.model.Lineal) Test(org.junit.Test)

Example 7 with LinealEditor

use of com.revolsys.geometry.model.editor.LinealEditor in project com.revolsys.open by revolsys.

the class MultiLineStringEditorTest method testSetX.

@Test
public void testSetX() {
    final LinealEditor editor = LINEAL.newGeometryEditor(3);
    editor.setX(1, 1, 10);
    final Lineal newGeometry = editor.newGeometry();
    Assert.assertNotSame(LINEAL, newGeometry);
    Assert.assertEquals(10.0, newGeometry.getX(1, 1), 0.0);
}
Also used : LinealEditor(com.revolsys.geometry.model.editor.LinealEditor) Lineal(com.revolsys.geometry.model.Lineal) Test(org.junit.Test)

Aggregations

LinealEditor (com.revolsys.geometry.model.editor.LinealEditor)7 Lineal (com.revolsys.geometry.model.Lineal)6 Test (org.junit.Test)6