bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / spatial / transform / _rotation / Rotation / identity
staticmethod
scipy.spatial.transform._rotation:Rotation.identity
source: build-install/usr/lib/python3.14/site-packages/scipy/spatial/transform/_rotation.py:2267
Signature
staticmethod
def identity(num: int | None = None, *, shape: int | tuple[int, ...] | None = None) → RotationSummary
Get identity rotation(s).
Extended Summary
Composition with the identity rotation has no effect.
Parameters
num: int or None, optionalNumber of identity rotations to generate. If None (default), then a single rotation is generated.
shape: int or tuple of ints, optionalShape of identity rotations to generate. If specified,
nummust be None.
Returns
identity: Rotation objectThe identity rotation.
Aliases
scipy.spatial.transform.Rotation.identity