Name | Type | Description |
---|---|---|
Angular Unit Types | ||
kInvalid | Int | |
kRadians | Int | Radians. |
kDegrees | Int | Degrees. |
kAngMinutes | Int | Minutes of arc. |
kAngSeconds | Int | Seconds of arc. |
kLast | Int | Marker for end of angular type constants. |
Name | Parameters | Returns | Description |
---|---|---|---|
uiUnit() | Angular unit type constant | Returns the units currently used by Maya's UI when entering and displaying angular values. | |
setUIUnit(newUnit) | newUnit - Angular unit type constant | None. | Sets the units used by Maya's UI when entering and displaying angular values. |
internalUnit() | Angular unit type constant | Returns the unit type used by Maya to store angular values internally (e.g. in plugs and binary files). | |
internalToUI(internalValue) | internalValue - Float | Float | Interprets internalValue as an angular value in Maya's internal units and returns it converted to UI units. |
uiToInternal(uiValue) | uiValue - Float | Float | Interprets uiValue as an angular value in Maya's UI units and returns it converted to UI units. |
None.
Signature | Parameters | Description |
---|---|---|
MAngle() | Default constructor. Returns a new MAngle with a value of 0.0 radians. | |
MAngle(src) | src - MAngle | Copy constructor. Returns a new MAngle having the same value and unit as src. |
MAngle(value, unit) | value - Float
unit - Angular unit type constant |
Returns a new MAngle having the specified value and unit. |
Signature | Parameters | Returns | Description |
---|---|---|---|
asRadians() | Float | Returns the angular value converted to radians. | |
asDegrees() | Float | Returns the angular value converted to degrees. | |
asAngMinutes() | Float | Returns the angular value converted to minutes of arc. | |
asAngSeconds() | Float | Returns the angular value converted to seconds of arc. | |
asUnits(unit) | unit - Angular unit type constant | Float | Returns the angular value converted to the specified unit. |
Name | Type | Access | Description |
---|---|---|---|
value | Float | RW | Raw value of angle. |
unit | Angular unit type constant | RW | Angulat units in which value is interpreted. |
None.
None.
None.
© 2011 Autodesk, Inc. All rights reserved.