| Package | Description |
|---|---|
| org.xmlcml.euclid |
| Modifier and Type | Method and Description |
|---|---|
Int2 |
Int2.decrementX()
subtracts 1 from x value.
|
Int2 |
Int2.decrementY()
subtracts 1 from y value.
|
static Int2 |
Int2.getInt2(Real2 xy2)
cast a Real2 into an Int2.
|
Int2 |
Int2.getMidPoint(Int2 p)
point midway between 'this' and 'p'
|
Int2 |
Int2.incrementX()
adds 1 to x value.
|
Int2 |
Int2.incrementY()
adds 1 to y value.
|
Int2 |
RealMatrix.indexOfLargestElement()
get index of largest element.
|
Int2 |
IntMatrix.indexOfLargestElement()
get index of largest element.
|
Int2 |
RealMatrix.indexOfSmallestElement()
get index of smallest element.
|
Int2 |
IntMatrix.indexOfSmallestElement()
get index of smallest element.
|
Int2 |
Int2.multiplyBy(int f)
multiply a point by a scalar
|
Int2 |
Int2.plus(Int2 r2)
add two points to give vector sum
|
Int2 |
Int2.subtract(Int2 r2)
subtract two points to give vector difference
|
| Modifier and Type | Method and Description |
|---|---|
void |
Int2Range.add(Int2 p)
add a Int2 to a range
|
int |
Int2.dotProduct(Int2 r)
get dot product
|
double |
RealMatrix.elementAt(Int2 rowcol)
extracts a given element.
|
int |
IntMatrix.elementAt(Int2 rowcol)
extracts a given element.
|
double |
Int2.getEuclideanDistance(Int2 int2) |
double |
Int2.getManhattanDistance(Int2 int2) |
Int2 |
Int2.getMidPoint(Int2 p)
point midway between 'this' and 'p'
|
boolean |
Int2Range.includes(Int2 p)
is an Int2 within a Int2Range
|
static boolean |
Int2.isEqual(Int2 xy0,
Int2 xy1)
compares two Int2s.
|
boolean |
Int2.isEqualTo(Int2 r)
is equal to.
|
Int2 |
Int2.plus(Int2 r2)
add two points to give vector sum
|
Int2 |
Int2.subtract(Int2 r2)
subtract two points to give vector difference
|
| Constructor and Description |
|---|
Int2(Int2 r)
copy constructor
|
Real2(Int2 int2)
constructor.
|
Copyright © 1994–2024 Peter Murray-Rust. All rights reserved.