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

bundles / scipy latest / scipy / spatial / transform / _rotation / Rotation / __bool__

function

scipy.spatial.transform._rotation:Rotation.__bool__

source: build-install/usr/lib/python3.14/site-packages/scipy/spatial/transform/_rotation.py:2609

Signature

def __bool__(self) → bool

Summary

Comply with Python convention for objects to be True.

Extended Summary

Required because Rotation.__len__() is defined and not always truthy.

Aliases

  • scipy.spatial.transform.Rotation.__bool__