Packageorg.un.flex.utils.geom
Classpublic class PoincareIsometry
ImplementsIIsometry

This class implements IIsometry for the Poincare hyperbolic model. The two end points A and C of this isometry are ComplexNumbers
The implementation is a rewrite of Jens Kanschik's Hypergraph implementation in Java. However, apart from the general idea and some variable names, this code improves on hypergraph and also implements additional functionality. Copyright (C) 2003 Jens Kanschik, mail : jensKanschik



Public Properties
 PropertyDefined by
  a : ComplexNumber
Returns point A (Complex Number) of the Isometry.
PoincareIsometry
  c : ComplexNumber
Returns point C (Complex Number) of the Isometry.
PoincareIsometry
Public Methods
 MethodDefined by
  
PoincareIsometry(ar:Number = 0, ai:Number = 0, cr:Number = 0, ci:Number = 0)
Constructs an isometry for the Poincare model
PoincareIsometry
  
applyToPoint(mp1:IPoint):void
Applies this isometry to a given IPoint and modify it.
PoincareIsometry
  
applyToVector(vector:IVector):void
Applies this isometry to a given IVector and modify it.
PoincareIsometry
  
clone():Object
Creates a deep copy of this isometry.
PoincareIsometry
  
equals(obj:Object):Boolean
Returns true if the parameter object is equals to this and false otherwise.
PoincareIsometry
  
Returns a new instance of this isometry representing its inverse.
PoincareIsometry
  
invert():void
Inverts this isometry.
PoincareIsometry
  
multiplyLeft(isometry:IIsometry):void
Multiplies the given isometry with this isometry (to the left) and store the result: this = isometry this
PoincareIsometry
  
multiplyRight(isometry:IIsometry):void
Multiplies this isometry with the given isometry (to the right) and store the result: this = this isometry
PoincareIsometry
  
setTo(isom:IIsometry):void
Sets this isometry to the given isometry.
PoincareIsometry
  
Sets the isometry to an identity transformation.
PoincareIsometry
  
toString():String
Returns a string representation of the isometry.
PoincareIsometry
Property detail
aproperty
a:ComplexNumber  [read-write]

Returns point A (Complex Number) of the Isometry.

Implementation
    public function get a():ComplexNumber
    public function set a(value:ComplexNumber):void
cproperty 
c:ComplexNumber  [read-write]

Returns point C (Complex Number) of the Isometry.

Implementation
    public function get c():ComplexNumber
    public function set c(value:ComplexNumber):void
Constructor detail
PoincareIsometry()constructor
public function PoincareIsometry(ar:Number = 0, ai:Number = 0, cr:Number = 0, ci:Number = 0)

Constructs an isometry for the Poincare model

Parameters
ar:Number (default = 0) — The real part of point A
 
ai:Number (default = 0) — The imaginary part of point A
 
cr:Number (default = 0) — The real part of point C
 
ci:Number (default = 0) — The imaginary part of point C
Method detail
applyToPoint()method
public function applyToPoint(mp1:IPoint):void

Applies this isometry to a given IPoint and modify it.

Parameters
mp1:IPoint — The point to be modified.
applyToVector()method 
public function applyToVector(vector:IVector):void

Applies this isometry to a given IVector and modify it.

Parameters
vector:IVector — The vector to be modified.
clone()method 
public function clone():Object

Creates a deep copy of this isometry.

Returns
Object — A deep copy of this isometry.
equals()method 
public function equals(obj:Object):Boolean

Returns true if the parameter object is equals to this and false otherwise.

Parameters
obj:Object — Any object.

Returns
Boolean — True if obj equals this.
getInverse()method 
public function getInverse():IIsometry

Returns a new instance of this isometry representing its inverse. In other words: this this.getInverse() = Identity This isometry is not modified.

Returns
IIsometry — The inverse of this isometry.
invert()method 
public function invert():void

Inverts this isometry. Similar to getInverse().

multiplyLeft()method 
public function multiplyLeft(isometry:IIsometry):void

Multiplies the given isometry with this isometry (to the left) and store the result: this = isometry this

Parameters
isometry:IIsometry — The isometry multiplied from the left.
multiplyRight()method 
public function multiplyRight(isometry:IIsometry):void

Multiplies this isometry with the given isometry (to the right) and store the result: this = this isometry

Parameters
isometry:IIsometry — The factor from the right.
setTo()method 
public function setTo(isom:IIsometry):void

Sets this isometry to the given isometry. The specified isometry must belong to the same model.

Parameters
isom:IIsometry — The new isometry.
setToIdentity()method 
public function setToIdentity():void

Sets the isometry to an identity transformation.

toString()method 
public function toString():String

Returns a string representation of the isometry.

Returns
String — A String in appropriate format.