public class Real2Interval extends Object implements EuclidConstants
C_AMP, C_APOS, C_ATSIGN, C_BACKSLASH, C_BACKSPACE, C_CARET, C_COLON, C_COMMA, C_DEL, C_DOLLAR, C_EQUALS, C_FORMFEED, C_HASH, C_LANGLE, C_LBRAK, C_LCURLY, C_LSQUARE, C_MINUS, C_NBSP, C_NEWLINE, C_NL, C_PERCENT, C_PERIOD, C_PIPE, C_PLUS, C_POUND, C_QUERY, C_QUOT, C_RANGLE, C_RBRAK, C_RCURLY, C_RETURN, C_RSQUARE, C_SEMICOLON, C_SHRIEK, C_SLASH, C_SPACE, C_STAR, C_TAB, C_TILDE, C_UNDER, EPS, F_S, NONWHITEPUNC, NONWHITEPUNC0, NONWHITEPUNC0REGEX, ONE_THIRD, PUNC, S_AMP, S_APOS, S_ATSIGN, S_BACKSLASH, S_CARET, S_COLON, S_COMMA, S_DOLLAR, S_EMPTY, S_EQUALS, S_FORMFEED, S_HASH, S_LANGLE, S_LBRAK, S_LCURLY, S_LSQUARE, S_MINUS, S_NEWLINE, S_NL, S_PERCENT, S_PERIOD, S_PIPE, S_PLUS, S_POUND, S_QUERY, S_QUOT, S_RANGLE, S_RBRAK, S_RCURLY, S_RETURN, S_RSQUARE, S_SEMICOLON, S_SHRIEK, S_SLASH, S_SPACE, S_STAR, S_TAB, S_TILDE, S_UNDER, S_WHITEREGEX, TWO_THIRDS, U_S, WHITESPACE| Constructor and Description |
|---|
Real2Interval()
constructor.
|
Real2Interval(Real2Interval xyInterval)
copy constructor.
|
Real2Interval(Real2Range range2)
constructor from range.
|
Real2Interval(RealInterval xInterval,
RealInterval yInterval)
constructor from 1-D intervals.
|
| Modifier and Type | Method and Description |
|---|---|
Real2 |
midPoint()
gets midpoint.
|
double[] |
offsetsTo(Real2Interval interval2)
offset to map one interval onto another.
|
double[] |
offsetsTo(Real2Interval interval2,
double scale)
offsets to overlap origins in each
isotropic scales
scales these by scale
|
double[] |
offsetsTo(Real2Interval interval2,
double[] scales)
offsets to overlap origins in each
scales these by scales and then calculates offsets to overlap midpoints
|
double[] |
scalesTo(Real2Interval interval2)
get x and y scales to other interval2.
|
double |
scaleTo(Real2Interval interval2)
get isotropic scale to other interval2.
|
public Real2Interval()
public Real2Interval(RealInterval xInterval, RealInterval yInterval)
xInterval - yInterval - public Real2Interval(Real2Interval xyInterval)
xyInterval - public Real2Interval(Real2Range range2)
range2 - public double[] scalesTo(Real2Interval interval2)
interval2 - public double scaleTo(Real2Interval interval2)
interval2 - public double[] offsetsTo(Real2Interval interval2, double[] scales)
interval2 - scales - (some might be NaN)public double[] offsetsTo(Real2Interval interval2, double scale)
interval2 - scale - public double[] offsetsTo(Real2Interval interval2)
interval2 - public Real2 midPoint()
Copyright © 1994–2024 Peter Murray-Rust. All rights reserved.