pygeodesy :: datums :: Similarity :: Class Similarity
[frames] | no frames]

Class Similarity

  object --+                
           |                
named._Named --+            
               |            
named._NamedBase --+        
                   |        
named._NamedEnumItem --+    
                       |    
               Transform --+
                           |
                          Similarity

Similarity transformation.

Instance Methods
 
__init__(self, name='', tx=0, ty=0, tz=0, s=0, rx=0, ry=0, rz=0)
New Similarity.
 
transform(self, x, y, z, xyz0=(), inverse=False, **Vector_and_kwds)
Transform a (cartesian) position, forward or inverse.

Inherited from Transform: __eq__, __hash__, __iter__, __matmul__, __neg__, inverse, items, toStr

Inherited from named._NamedEnumItem: unregister

Inherited from named._NamedBase: __repr__, __str__, others, toRepr

Inherited from named._Named: __format__, __imatmul__, __rmatmul__, attrs, classof, copy, dup, methodname, rename, renamed, toStr2

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables

Inherited from Transform: rx, ry, rz, s, s1, sx, sy, sz, tx, ty, tz

Properties

Inherited from Transform: isunity

Inherited from named._NamedEnumItem: name

Inherited from named._Named: classname, classnaming, iteration, named, named2, named3, named4, sizeof, typename

Inherited from object: __class__

Method Details

__init__(self, name='', tx=0, ty=0, tz=0, s=0, rx=0, ry=0, rz=0)
(Constructor)

 

New Similarity.

Parameters:
  • name - Optional, unique name (str).
  • tx - X translation (meter).
  • ty - Y translation (meter).
  • tz - Z translation (meter).
  • s - Scale (float), ppm.
  • rx - X rotation (micro-radians).
  • ry - Y rotation (micro-radians).
  • rz - Z rotation (micro-radians).
Raises:
  • NameError - Similarity with that name already exists.
Overrides: object.__init__

transform(self, x, y, z, xyz0=(), inverse=False, **Vector_and_kwds)

 

Transform a (cartesian) position, forward or inverse.

Parameters:
  • x - X coordinate (meter).
  • y - Y coordinate (meter).
  • z - Z coordinate (meter).
  • xyz0 - Optional pivot point (3-tuple meter).
  • inverse - If True, apply the inverse transform (bool).
  • Vector_and_kwds - An optional, (3-D) Vector=None or cartesian class and additional Vector keyword arguments to return the transformed position.
Returns:
The transformed position (Vector3Tuple(x, y, z)) unless some Vector_and_kwds are specified.
Overrides: Transform.transform