File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
1212* Added implementation of ` RhinoBrep.fillet() ` and ` RhinoBrep.filleted() ` to ` compas_rhino ` .
1313* Added ` Frame.invert ` and ` Frame.inverted ` .
14+ * Added ` Frame.flip ` and ` Frame.flipped ` as alias for invert and inverted.
15+ * Added ` Vector.flip ` and ` Vector.flipped ` as alias for invert and inverted.
1416
1517### Changed
1618
Original file line number Diff line number Diff line change @@ -609,12 +609,16 @@ def invert(self):
609609 self ._yaxis = self .yaxis * - 1
610610 self ._zaxis = None
611611
612+ flip = invert
613+
612614 def inverted (self ):
613615 """Return an inverted copy of the frame."""
614616 frame = self .copy () # type: Frame
615617 frame .invert ()
616618 return frame
617619
620+ flipped = inverted
621+
618622 def interpolate_frame (self , other , t ):
619623 """Interpolates between two frames at a given parameter t in the range [0, 1]
620624
Original file line number Diff line number Diff line change @@ -679,6 +679,8 @@ def invert(self):
679679 """
680680 self .scale (- 1.0 )
681681
682+ flip = invert
683+
682684 def inverted (self ):
683685 """Returns a inverted copy of this vector
684686
@@ -697,6 +699,8 @@ def inverted(self):
697699 """
698700 return self .scaled (- 1.0 )
699701
702+ flipped = inverted
703+
700704 def scale (self , n ):
701705 """Scale this vector by a factor n.
702706
You can’t perform that action at this time.
0 commit comments