concepts.dm.crowhat.manipulation_utils.pivot_sampler.RotationAlongAxis#

class RotationAlongAxis[source]#

Bases: NamedTuple

The rotation information that specifies the rotation center, the rotation axis, and the rotation angle.

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

angle

Alias for field number 2

axis

Alias for field number 1

center

Alias for field number 0

__add__(value, /)#

Return self+value.

__getitem__(key, /)#

Return self[key].

__init__()#
__iter__()#

Implement iter(self).

__len__()#

Return len(self).

__mul__(value, /)#

Return self*value.

static __new__(_cls, center, axis, angle)#

Create new instance of RotationAlongAxis(center, axis, angle)

Parameters:
count(value, /)#

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)#

Return first index of value.

Raises ValueError if the value is not present.

angle: float#

Alias for field number 2

axis: Tuple[float, float, float] | List[float] | ndarray#

Alias for field number 1

center: Tuple[float, float, float] | List[float] | ndarray#

Alias for field number 0