|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttreebolic.core.HyperTransform
public class HyperTransform
Hyperbolic transform implementation
Field Summary | |
---|---|
static HyperTransform |
NULLTRANSFORM
Null transform |
HyperRotation |
theRot
Rotation componenet of transform, with abs(theRot) == 1 |
HyperTranslation |
theXlat
Translation component, with abs(theXlat) < 1 |
Constructor Summary | |
---|---|
HyperTransform()
Default constructor that makes null transform |
|
HyperTransform(Complex p,
Complex r)
Constructor from translation vector and rotation angle |
|
HyperTransform(double px,
double py,
double rx,
double ry)
Constructor for transform expressed in cartesian mode |
|
HyperTransform(HyperRotation r)
Constructor from rotation, null translation |
|
HyperTransform(HyperTransform t)
Copy constructor |
|
HyperTransform(HyperTranslation p)
Constructor from translation, null rotation |
|
HyperTransform(HyperTranslation p,
HyperRotation r)
Constructor from translation and rotation |
|
HyperTransform(HyperTranslation t1,
HyperTranslation t2)
Construct transform as composition of 2 transforms |
Method Summary | |
---|---|
HyperTransform |
compose(HyperTransform t2)
Compose this transform with other transform |
HyperTransform |
composeXlats(HyperTranslation t1,
HyperTranslation t2)
Compose 2 translations |
HyperTransform |
inverse()
Inverse |
Complex |
map(Complex z)
Map point in hyperbolic space |
HyperTransform |
set(HyperTransform t)
Copy transform |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final HyperTransform NULLTRANSFORM
public HyperTranslation theXlat
public HyperRotation theRot
Constructor Detail |
---|
public HyperTransform()
public HyperTransform(Complex p, Complex r)
p
- translation vectorr
- rotation anglepublic HyperTransform(HyperTranslation p)
p
- translation vectorpublic HyperTransform(HyperRotation r)
r
- rotation anglepublic HyperTransform(HyperTranslation p, HyperRotation r)
p
- translationr
- rotationpublic HyperTransform(double px, double py, double rx, double ry)
px
- x coordinate for translation vector expressed in cartesian mode (relative to 0,0)py
- y coordinate for translation vector expressed in cartesian mode (relative to 0,0)rx
- x coordinate for rotation expressed by point (relative to 0,0 and x-axis)ry
- y coordinate for rotation expressed by point (relative to 0,0 and x-axis)public HyperTransform(HyperTransform t)
t
- source transformpublic HyperTransform(HyperTranslation t1, HyperTranslation t2)
t1
- transformt2
- transformMethod Detail |
---|
public HyperTransform set(HyperTransform t)
t
- source transform
public HyperTransform inverse()
public Complex map(Complex z)
IHyperTransform
map
in interface IHyperTransform
z
- point is hyperbolic space
public HyperTransform compose(HyperTransform t2)
t2
- transform
public HyperTransform composeXlats(HyperTranslation t1, HyperTranslation t2)
t1
- translationt2
- translation
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 |