Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

dbConvertAnyAngleTransformFromDbToMY

dbConvertAnyAngleTransformFromDbToMY(
t_orient 
f_angleDeg
) 
=> list(f_angleDeg g_MY)

Description

(Virtuoso MultiTech Framework) Converts orientation-based representation of an orthogonal transformation into an MY-based representation. Orientation-based representation is a pair of DB orientation and any-angle rotation with the rotation applied first. The MY-based representation is a pair of any-angle rotation and an optional reflection over a Y-axis with the reflection applied first.

Arguments

t_orient

A string representing orientation. See dbIsId.

f_angleDeg

Floating point number representing any-angle rotation in degrees.

Value Returned

list(f_angleDeg g_boolMY)

A list with two elements:
(f_angleDeg g_boolMY)

where,

  • f_angleDeg A floating point number representing any-angle rotation in degrees. Valid value: Any number between 0 and 360.
  • g_MY A Boolean (t | nil) specifying whether "MY" mirroring should be applied.

Examples

The following example checks the orientation is flipped:

(defun flipsOrientation (t_orient)
    (cadr dbConvertAnyAngleTransformFromDbToMY(t_orient 0.0)))

Related Topics

Shape Transformation Functions


Return to top
 ⠀
X