|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttreebolic.core.Complex
treebolic.core.HyperTranslation
public class HyperTranslation
Translation
Field Summary |
---|
Fields inherited from class treebolic.core.Complex |
---|
EAST, im, NORTH, ONE, re, SOUTH, WEST, ZERO |
Constructor Summary | |
---|---|
HyperTranslation()
Default constructor (defaulting to null translation) |
|
HyperTranslation(Complex p)
Constructor from point, cartesian representation of translation (relative to 0,0 origin) |
|
HyperTranslation(Complex from,
Complex to)
Construct tranlation from source point and destination points |
|
HyperTranslation(Complex from,
Complex to,
boolean dummy)
Constructor of hyperbolic translation which maps 'from' to 0,0 and 0,0 to 'to' |
|
HyperTranslation(double x,
double y)
Constructor from point, cartesian representation of translation (relative to 0,0 origin) |
Method Summary | |
---|---|
static HyperTransform |
compose(HyperTranslation t1,
HyperTranslation t2)
Compose 2 translations |
HyperTranslation |
inverse()
Inverse |
Complex |
map(Complex z)
Map point |
static Complex |
map(Complex z,
Complex p)
Map point by translation expressed as point |
static Complex |
map2(Complex z,
Complex p1,
Complex p2)
Double-map point by translations expressed as points |
Complex |
mapinv(Complex z)
Map point by this translation's inverse |
static Complex |
mapinv(Complex z,
Complex p)
Map point by inverse of translation expressed as point |
Complex |
toComplex()
Convert to cartesian representation of translation as point relative to 0,0 |
java.lang.String |
toString()
|
Methods inherited from class treebolic.core.Complex |
---|
abs2, add, add, arg, conj, conj, div, div, divide, divide, equals, mag, makeFromArg, makeFromArgAbs, mul, mul, multiply, multiply, neg, neg, normalize, onediv, set, set, sub, sub |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HyperTranslation()
public HyperTranslation(Complex p)
p
- cartesian representation of translation as a point (relative to 0,0 origin)public HyperTranslation(double x, double y)
x
- x-coordinate of cartesian representation of translation (relative to 0,0 origin)y
- y-coordinate of cartesian representation of translation (relative to 0,0 origin)public HyperTranslation(Complex from, Complex to, boolean dummy)
from
- source point to be translated to 0,0to
- traget point 0,0 is to be translated todummy
- dummypublic HyperTranslation(Complex from, Complex to)
from
- source pointto
- destination pointMethod Detail |
---|
public Complex toComplex()
public static Complex map(Complex z, Complex p)
z
- point to be mappedp
- point expressing translation relative to 0,0
public static Complex map2(Complex z, Complex p1, Complex p2)
z
- point to be mappedp1
- point expressing translation relative to 0,0p2
- point expressing translation relative to 0,0
public static Complex mapinv(Complex z, Complex p)
z
- point to be mappedp
- point expressing translation relative to 0,0
public Complex map(Complex z)
z
- point to be mapped
public Complex mapinv(Complex z)
z
- point to be mapped
public HyperTranslation inverse()
public static HyperTransform compose(HyperTranslation t1, HyperTranslation t2)
t1
- translationt2
- translation
public java.lang.String toString()
toString
in class Complex
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |