Dimension
Kind: Class
Domain: Expressions, units, and tolerances
Canonical import: from cadflow import Dimension
Signature
class Dimension(length: 'int' = 0, angle: 'int' = 0) -> None
Description
Physical dimension represented by integer length and angle exponents.
Parameters
| Name | Type | Required | Default | Source description |
|---|---|---|---|---|
length | 'int' | no | 0 | Not explicitly described in the source docstring. |
angle | 'int' | no | 0 | Not explicitly described in the source docstring. |
Returns
Type: None
The source docstring does not declare additional return semantics.
Errors
The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.
Data fields
| Name | Type | Default |
|---|---|---|
length | 'int' | 0 |
angle | 'int' | 0 |
Public members
| Member | Kind | Signature | Description |
|---|---|---|---|
divide | method | (self, other: "'Dimension'") -> "'Dimension'" | See the member signature. |
from_dict | class method | (cls, data: 'Mapping[str, Any]') -> "'Dimension'" | See the member signature. |
is_design_dimension | property | - | See the member signature. |
is_dimensionless | property | - | See the member signature. |
multiply | method | (self, other: "'Dimension'") -> "'Dimension'" | See the member signature. |
name | property | - | See the member signature. |
power | method | (self, exponent: 'int') -> "'Dimension'" | See the member signature. |
square_root | method | (self) -> "'Dimension'" | See the member signature. |
symbol | property | - | See the member signature. |
to_dict | method | (self) -> 'Dict[str, int]' | See the member signature. |
Behavior and constraints
- Instances are immutable dataclass values; update workflows return a replacement value.
Import check
from cadflow import Dimension