Packageorg.un.flex.utils.geom
Interfacepublic interface IIsometry
ImplementorsPoincareIsometry

This interface provides a common definition for isometries in any Hyperbolic Model. The models have the actual implementation, which should provide at least a default constructor, say, the identity transformation.
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 Methods
 MethodDefined by
  
Applies this isometry to a given IPoint and modify it.
IIsometry
  
Applies this isometry to a given IVector and modify it.
IIsometry
  
clone():Object
Creates a deep copy of this isometry.
IIsometry
  
equals(obj:Object):Boolean
Returns true if the parameter object is equals to this and false otherwise.
IIsometry
  
Returns a new instance of this isometry representing its inverse.
IIsometry
  
invert():void
Inverts this isometry.
IIsometry
  
multiplyLeft(isometry:IIsometry):void
Multiplies the given isometry with this isometry (to the left) and store the result: this = isometry this
IIsometry
  
multiplyRight(isometry:IIsometry):void
Multiplies this isometry with the given isometry (to the right) and store the result: this = this isometry
IIsometry
  
setTo(isom:IIsometry):void
Sets this isometry to the given isometry.
IIsometry
  
Sets the isometry to an identity transformation.
IIsometry
  
toString():String
Returns a string representation of the isometry.
IIsometry
Method detail
applyToPoint()method
public function applyToPoint(p:IPoint):void

Applies this isometry to a given IPoint and modify it.

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

Applies this isometry to a given IVector and modify it.

Parameters
v: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.