Mantis issue 0021066: GetAngle function. Update documentation.

This commit is contained in:
jfa 2012-01-12 11:06:08 +00:00
parent 34e86f5a10
commit 354f127d1d
2 changed files with 11 additions and 1 deletions

View File

@ -169,7 +169,12 @@ distance is computed.
\anchor angle_anchor \anchor angle_anchor
<br><h2>Angle</h2> <br><h2>Angle</h2>
\n Returns the angle between two lines or linear edges in degrees \n Returns the angle between two lines or linear edges in degrees.
\note If both arguments are <b>vectors</b>, the angle is computed in
accordance with their orientations, otherwise the minimum angle
is computed.
\n <b>TUI Command:</b> <em>geompy.GetAngle(shape1, shape2),</em> where \n <b>TUI Command:</b> <em>geompy.GetAngle(shape1, shape2),</em> where
Shape1 and Shape2 are shapes between which the angle is computed. Shape1 and Shape2 are shapes between which the angle is computed.
Another TUI command is <em>geompy.GetAngleRadians(shape1,shape2),</em> Another TUI command is <em>geompy.GetAngleRadians(shape1,shape2),</em>

View File

@ -3539,6 +3539,8 @@ class geompyDC(GEOM._objref_GEOM_Gen):
## Get angle between the given shapes in degrees. ## Get angle between the given shapes in degrees.
# @param theShape1,theShape2 Lines or linear edges to find angle between. # @param theShape1,theShape2 Lines or linear edges to find angle between.
# @note If both arguments are vectors, the angle is computed in accordance
# with their orientations, otherwise the minimum angle is computed.
# @return Value of the angle between the given shapes in degrees. # @return Value of the angle between the given shapes in degrees.
# #
# @ref tui_measurement_tools_page "Example" # @ref tui_measurement_tools_page "Example"
@ -3547,8 +3549,11 @@ class geompyDC(GEOM._objref_GEOM_Gen):
anAngle = self.MeasuOp.GetAngle(theShape1, theShape2) anAngle = self.MeasuOp.GetAngle(theShape1, theShape2)
RaiseIfFailed("GetAngle", self.MeasuOp) RaiseIfFailed("GetAngle", self.MeasuOp)
return anAngle return anAngle
## Get angle between the given shapes in radians. ## Get angle between the given shapes in radians.
# @param theShape1,theShape2 Lines or linear edges to find angle between. # @param theShape1,theShape2 Lines or linear edges to find angle between.
# @note If both arguments are vectors, the angle is computed in accordance
# with their orientations, otherwise the minimum angle is computed.
# @return Value of the angle between the given shapes in radians. # @return Value of the angle between the given shapes in radians.
# #
# @ref tui_measurement_tools_page "Example" # @ref tui_measurement_tools_page "Example"