This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / 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

staticmethoddef identity(num: int | None = None, *, shape: int | tuple[int, ...] | None = None) → Rotation

Summary

Get identity rotation(s).

Extended Summary

Composition with the identity rotation has no effect.

Parameters

num : int or None, optional

Number of identity rotations to generate. If None (default), then a single rotation is generated.

shape : int or tuple of ints, optional

Shape of identity rotations to generate. If specified, num must be None.

Returns

identity : Rotation object

The identity rotation.

Aliases

  • scipy.spatial.transform.Rotation.identity