{ } Raw JSON

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

function

scipy.spatial.transform._rotation:Rotation.__bool__

source: /scipy/spatial/transform/_rotation.py:2604

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__