mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-22 14:50:33 +05:00
Mantis issue 0021066: GetAngle function. Update documentation.
This commit is contained in:
parent
34e86f5a10
commit
354f127d1d
@ -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>
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user