public void set(int i, FrameTuple2DReadOnly frameTuple2d) { get(i).setIncludingFrame(frameTuple2d); }
private void unsafeSet(int i, FrameTuple2DReadOnly frameTuple2d) { unsafeGet(i).setIncludingFrame(frameTuple2d); }
private void unsafeSet(int i, ReferenceFrame referenceFrame, Tuple2DReadOnly tuple2d) { unsafeGet(i).setIncludingFrame(referenceFrame, tuple2d); }
public void setOrCreate(int i, FrameTuple2DReadOnly frameTuple2d) { getAndGrowIfNeeded(i).setIncludingFrame(frameTuple2d); }
public void copyFromPoint2dListAndTrimSize(ReferenceFrame referenceFrame, List<? extends Tuple2DReadOnly> otherList) { for (int i = 0; i < otherList.size(); i++) { getAndGrowIfNeeded(i).setIncludingFrame(referenceFrame, otherList.get(i)); } while(size() > otherList.size()) { remove(size() - 1); } }
public void copyFromListAndTrimSize(List<? extends FrameTuple2DReadOnly> otherList) { for (int i = 0; i < otherList.size(); i++) { getAndGrowIfNeeded(i).setIncludingFrame(otherList.get(i)); } while(size() > otherList.size()) { remove(size() - 1); } }
public void copyFromListAndTrimSize(FrameTuple2dArrayList<?> otherList) { for (int i = 0; i < otherList.size(); i++) { getAndGrowIfNeeded(i).setIncludingFrame(otherList.get(i)); } while(size() > otherList.size()) { remove(size() - 1); } }
Tuple2DBasics tuple = new Vector2D(); assertEquals(initialFrame, frameTuple.getReferenceFrame()); frameTuple.setIncludingFrame(newFrame, x, y); tuple.set(x, y); assertEquals(newFrame, frameTuple.getReferenceFrame()); Tuple2DBasics tuple = new Vector2D(); assertEquals(initialFrame, frameTuple.getReferenceFrame()); frameTuple.setIncludingFrame(newFrame, input); tuple.set(input); assertEquals(newFrame, frameTuple.getReferenceFrame()); Tuple2DBasics tuple = new Vector2D(); assertEquals(initialFrame, frameTuple.getReferenceFrame()); frameTuple.setIncludingFrame(newFrame, input); tuple.set(input); assertEquals(newFrame, frameTuple.getReferenceFrame()); frameTuple.setIncludingFrame(newFrame, input); if (expectedException != null) throw new AssertionError("Should have thrown an exception."); frameTuple.setIncludingFrame(newFrame, startIndex, input); if (expectedException != null) throw new AssertionError("Should have thrown an exception."); frameTuple.setIncludingFrame(newFrame, input); if (expectedException != null) throw new AssertionError("Should have thrown an exception.");