/[escript]/trunk/pyvisi/py_src/position.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/position.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1147 by ksteube, Wed May 16 06:39:11 2007 UTC revision 1388 by trankine, Fri Jan 11 07:45:58 2008 UTC
# Line 1  Line 1 
1  """  """
2  @author: John NGUI  @var __author__: name of author
3    @var __copyright__: copyrights
4    @var __license__: licence agreement
5    @var __url__: url entry point on documentation
6    @var __version__: version
7    @var __date__: date of the version
8  """  """
9    
10    __author__="John Ngui, john.ngui@uq.edu.au"
11    __copyright__="""  Copyright (c) 2006 by ACcESS MNRF
12                        http://www.access.edu.au
13                    Primary Business: Queensland, Australia"""
14    __license__="""Licensed under the Open Software License version 3.0
15                 http://www.opensource.org/licenses/osl-3.0.php"""
16    __url__="http://www.iservo.edu.au/esys"
17    __version__="$Revision$"
18    __date__="$Date$"
19    
20    
21  class LocalPosition:  class LocalPosition:
22      """      """
23      Class that defines the local positioning coordiante system (2D).      Class that defines the local positioning (X and Y)coordiante system (2D).
24      """      """
25    
26      def __init__(self, x_coor, y_coor):      def __init__(self, x_coor, y_coor):
# Line 17  class LocalPosition: Line 33  class LocalPosition:
33          @param y_coor: y coordinate          @param y_coor: y coordinate
34          """          """
35    
36            self.__x_coor = x_coor
37            self.__y_coor = y_coor
38          self.__position = [x_coor, y_coor]          self.__position = [x_coor, y_coor]
39    
40        def _getXCoor(self):
41            """
42            Return the X coordinate.
43    
44            @rtype: Number
45            @return: X coordinate
46            """
47    
48            return self.__x_coor
49    
50        def _getYCoor(self):
51            """
52            Return the Y coordinate.
53    
54            @rtype: Number
55            @return: Y coordinate
56            """
57    
58            return self.__y_coor
59    
60      def _getLocalPosition(self):      def _getLocalPosition(self):
61          """          """
62          Return the local position.          Return the local position.
# Line 35  class LocalPosition: Line 73  class LocalPosition:
73    
74  class GlobalPosition:  class GlobalPosition:
75      """      """
76      Class that defines the global positioning coordinate system (3D)      Class that defines the global positioning (X, Y and Z) coordinate system
77        (3D)
78      """      """
79            
80      def __init__(self, x_coor, y_coor, z_coor):      def __init__(self, x_coor, y_coor, z_coor):

Legend:
Removed from v.1147  
changed lines
  Added in v.1388

  ViewVC Help
Powered by ViewVC 1.1.26