|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.reprap.geometry.polygons.BooleanGrid.iPoint
class BooleanGrid.iPoint
Integer 2D point
Field Summary | |
---|---|
private int |
x
|
private int |
y
|
Constructor Summary | |
---|---|
BooleanGrid.iPoint(BooleanGrid.iPoint a)
Copy constructor |
|
BooleanGrid.iPoint(int xa,
int ya)
|
|
BooleanGrid.iPoint(Rr2Point a)
Convert real-world point to integer |
Method Summary | |
---|---|
(package private) BooleanGrid.iPoint |
abs()
Absolute value |
(package private) BooleanGrid.iPoint |
add(BooleanGrid.iPoint b)
Vector addition |
(package private) boolean |
coincidesWith(BooleanGrid.iPoint b)
Are two points the same? |
(package private) long |
magnitude2()
Squared length |
(package private) BooleanGrid.iPoint |
neg()
Opposite direction |
(package private) Rr2Point |
realPoint()
Generate the equivalent real-world point |
(package private) long |
scalarProduct(BooleanGrid.iPoint a)
Scalar product |
(package private) BooleanGrid.iPoint |
sub(BooleanGrid.iPoint b)
Vector subtraction |
java.lang.String |
toString()
For printing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int x
private int y
Constructor Detail |
---|
BooleanGrid.iPoint(int xa, int ya)
BooleanGrid.iPoint(BooleanGrid.iPoint a)
a
- BooleanGrid.iPoint(Rr2Point a)
a
- Method Detail |
---|
Rr2Point realPoint()
boolean coincidesWith(BooleanGrid.iPoint b)
b
-
BooleanGrid.iPoint add(BooleanGrid.iPoint b)
b
-
BooleanGrid.iPoint sub(BooleanGrid.iPoint b)
b
-
BooleanGrid.iPoint neg()
BooleanGrid.iPoint abs()
long magnitude2()
long scalarProduct(BooleanGrid.iPoint a)
a
-
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |