/** * Public constructor for building a {@link DomainElement1D} which applies the specified transformation on the values that fall into its * definition range. * * @param name for this {@link DomainElement1D}. * @param valueRange for this {@link DomainElement1D}. * @param transform for this {@link DomainElement1D}. * @throws IllegalArgumentException */ public DefaultPiecewiseTransform1DElement(CharSequence name, Range valueRange, final MathTransformation transform) throws IllegalArgumentException { super(name, valueRange); // ///////////////////////////////////////////////////////////////////// // // Initial checks // // ///////////////////////////////////////////////////////////////////// PiecewiseUtilities.ensureNonNull("transform", transform); this.transform = transform; }
/** * Public constructor for building a {@link DomainElement1D} which applies the specified transformation on the values that fall into its * definition range. * * @param name for this {@link DomainElement1D}. * @param valueRange for this {@link DomainElement1D}. * @param transform for this {@link DomainElement1D}. * @throws IllegalArgumentException */ public DefaultPiecewiseTransform1DElement(CharSequence name, Range valueRange, final MathTransformation transform) throws IllegalArgumentException { super(name, valueRange); // ///////////////////////////////////////////////////////////////////// // // Initial checks // // ///////////////////////////////////////////////////////////////////// PiecewiseUtilities.ensureNonNull("transform", transform); this.transform = transform; }
/** * @param transform * @uml.property name="transform" */ protected synchronized void setTransform(MathTransformation transform) { PiecewiseUtilities.ensureNonNull("transform", transform); if (this.transform == null) this.transform = transform; else throw new IllegalStateException(); }
/** * @param transform * @uml.property name="transform" */ protected synchronized void setTransform(MathTransformation transform) { PiecewiseUtilities.ensureNonNull("transform", transform); if (this.transform == null) this.transform = transform; else throw new IllegalStateException(); }
public Position transform(final Position ptSrc, Position ptDst) throws TransformationException { // ///////////////////////////////////////////////////////////////////// // // input checks // // ///////////////////////////////////////////////////////////////////// PiecewiseUtilities.ensureNonNull("ptSrc", ptSrc); if (ptDst == null) { ptDst = new Position(); } ptDst.setOrdinatePosition(transform(ptSrc.getOrdinatePosition())); return ptDst; }
public Position transform(final Position ptSrc, Position ptDst) throws TransformationException { // ///////////////////////////////////////////////////////////////////// // // input checks // // ///////////////////////////////////////////////////////////////////// PiecewiseUtilities.ensureNonNull("ptSrc", ptSrc); if (ptDst == null) { ptDst = new Position(); } ptDst.setOrdinatePosition(transform(ptSrc.getOrdinatePosition())); return ptDst; }
/** * Transforms the specified {@code ptSrc} and stores the result in {@code ptDst}. */ public Position transform(final Position ptSrc, Position ptDst) throws TransformationException { PiecewiseUtilities.ensureNonNull("DirectPosition", ptSrc); if (ptDst == null) { ptDst = new Position(); } final double value = ptSrc.getOrdinatePosition(); checkContainment(value); ptDst.setOrdinatePosition(transform(value)); return ptDst; }
/** * Transforms the specified {@code ptSrc} and stores the result in {@code ptDst}. */ public Position transform(final Position ptSrc, Position ptDst) throws TransformationException { PiecewiseUtilities.ensureNonNull("DirectPosition", ptSrc); if (ptDst == null) { ptDst = new Position(); } final double value = ptSrc.getOrdinatePosition(); checkContainment(value); ptDst.setOrdinatePosition(transform(value)); return ptDst; }
PiecewiseUtilities.ensureNonNull("name", name); PiecewiseUtilities.ensureNonNull("range", inputRange);
PiecewiseUtilities.ensureNonNull("name", name); PiecewiseUtilities.ensureNonNull("range", inputRange);
PiecewiseUtilities.ensureNonNull("DomainElement1D[]", inDomainElements);
PiecewiseUtilities.ensureNonNull("DomainElement1D[]", inDomainElements);