Salome HOME
Merge Dev_2.1.0 with PythonAPI branch
[modules/shaper.git] / src / PythonAPI / geom / missed.py
1 # Direct Geometry API not yet swigged
2 # Author: Daniel Brunier-Coulin
3 # -----------------------------
4
5 #from GeomAPI import *
6
7
8 class Ax3:
9   """A class to represent a Coordinate system object"""
10
11   def __init__(self, origin, normal, dirx):
12     """Constructor"""
13     ### Create an origin point
14     self.o  = origin
15     ### Create a normal vector
16     self.n  = normal
17     ### Create X axis direction
18     self.dx = dirx
19
20   def location (self):
21     """Returns origin point"""
22     return self.o
23
24   def direction (self):
25     """Returns normal direction"""
26     return self.n
27
28   def xDirection (self):
29     """Returns direction of X axis"""
30     return self.dx
31
32   def yDirection (self):
33     """Returns direction of Y axis"""
34     return self.n.cross(self.dx)