Convert a point in local coordinates to global coordinates :param tuplePoint: point in local coordinates to convert. :type tuplePoint: a 2 or three tuple of float. The third value is taken to be zero if not supplied. :return: a Vector in global coordinates
(self, tuplePoint)
| 730 | ) |
| 731 | |
| 732 | def toWorldCoords(self, tuplePoint) -> Vector: |
| 733 | """Convert a point in local coordinates to global coordinates |
| 734 | |
| 735 | :param tuplePoint: point in local coordinates to convert. |
| 736 | :type tuplePoint: a 2 or three tuple of float. The third value is taken to be zero if not supplied. |
| 737 | :return: a Vector in global coordinates |
| 738 | """ |
| 739 | if isinstance(tuplePoint, Vector): |
| 740 | v = tuplePoint |
| 741 | elif len(tuplePoint) == 2: |
| 742 | v = Vector(tuplePoint[0], tuplePoint[1], 0) |
| 743 | else: |
| 744 | v = Vector(tuplePoint) |
| 745 | return v.transform(self.rG) |
| 746 | |
| 747 | def rotated(self, rotate=(0, 0, 0)): |
| 748 | """Returns a copy of this plane, rotated about the specified axes |