Skip to main content

rotate

Kind: Function
Domain: Modeling and geometry
Canonical import: from cadflow import rotate

Signature

def rotate(shape: 'AnyShape', angle: 'ScalarLike', axis: 'Tuple[float, float, float]' = (0, 0, 1), origin: 'Tuple[float, float, float]' = (0, 0, 0)) -> 'AnyShape'

Description

Rotate a shape around an axis.

Other public imports

  • from cadflow import rotate_shape

Parameters

NameTypeRequiredDefaultSource description
shape'AnyShape'yes-Not explicitly described in the source docstring.
angle'ScalarLike'yes-Not explicitly described in the source docstring.
axis'Tuple[float, float, float]'no(0, 0, 1)Not explicitly described in the source docstring.
origin'Tuple[float, float, float]'no(0, 0, 0)Not explicitly described in the source docstring.

Returns

Type: 'AnyShape'

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.

Behavior and constraints

  • The contract below is generated from the current public runtime signature. Check domain notes for ownership and workflow constraints.

Import check

from cadflow import rotate

See also