Skip to main content

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

NameTypeRequiredDefaultSource description
length'int'no0Not explicitly described in the source docstring.
angle'int'no0Not 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

NameTypeDefault
length'int'0
angle'int'0

Public members

MemberKindSignatureDescription
dividemethod(self, other: "'Dimension'") -> "'Dimension'"See the member signature.
from_dictclass method(cls, data: 'Mapping[str, Any]') -> "'Dimension'"See the member signature.
is_design_dimensionproperty-See the member signature.
is_dimensionlessproperty-See the member signature.
multiplymethod(self, other: "'Dimension'") -> "'Dimension'"See the member signature.
nameproperty-See the member signature.
powermethod(self, exponent: 'int') -> "'Dimension'"See the member signature.
square_rootmethod(self) -> "'Dimension'"See the member signature.
symbolproperty-See the member signature.
to_dictmethod(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

See also