public void setVector(FrameVector2d frameVector2d) { checkReferenceFrameMatch(frameVector2d); line.getNormalizedVector().set(frameVector2d.getVector()); }
public void set(FramePoint2d startPoint, FrameVector2d vector) { checkReferenceFrameMatch(startPoint); checkReferenceFrameMatch(vector); this.line.set(startPoint.getPoint(), vector.getVector()); }
public void set(FramePoint2d firstEndpoint, FrameVector2d vectorToSecondEndpoint) { checkReferenceFrameMatch(firstEndpoint); checkReferenceFrameMatch(vectorToSecondEndpoint); this.lineSegment.set(firstEndpoint.getPoint(), vectorToSecondEndpoint.getVector()); }
public boolean isPointInFrontOfLine(FrameVector2d frontDirection, FramePoint2d framePoint) { checkReferenceFrameMatch(frontDirection); checkReferenceFrameMatch(framePoint); return line.isPointInFrontOfLine(frontDirection.getVector(), framePoint.getPoint()); }
public void setIncludingFrame(FramePoint2d startPoint, FrameVector2d vector) { startPoint.checkReferenceFrameMatch(vector); this.referenceFrame = startPoint.getReferenceFrame(); this.line.set(startPoint.getPoint(), vector.getVector()); }
public void setFallingDirection(FrameVector2d fallingDirection) { fallingDirection.checkReferenceFrameMatch(ReferenceFrame.getWorldFrame()); if (this.fallingDirection == null) this.fallingDirection = new Vector2f(); this.fallingDirection.set(fallingDirection.getVector()); }
public void setLinearMomentumXY(FrameVector2d linearMomentum) { selectionMatrix.reshape(2, SpatialMotionVector.SIZE); selectionMatrix.set(0, 3, 1.0); selectionMatrix.set(1, 4, 1.0); momentum.reshape(selectionMatrix.getNumCols(), 1); MatrixTools.setDenseMatrixFromTuple2d(momentum, linearMomentum.getVector(), 3, 0); }
public void setLinearMomentumXYRateOfChange(FrameVector2d linearMomentumRateOfChange) { selectionMatrix.reshape(2, SpatialMotionVector.SIZE); selectionMatrix.set(0, 3, 1.0); selectionMatrix.set(1, 4, 1.0); momentumRate.reshape(selectionMatrix.getNumCols(), 1); MatrixTools.setDenseMatrixFromTuple2d(momentumRate, linearMomentumRateOfChange.getVector(), 3, 0); }