def __div__(self, div):
"""Divide each point in the cloud by a scalar.
Parameters
----------
div : float
The number by which to divide the PointCloud.
Returns
-------
:obj:`PointCloud`
A PointCloud created by the division.
Raises
------
ValueError
If div is not a scalar value.
"""
if not isinstance(div, numbers.Number):
raise ValueError('Type %s not supported. Only scalar division is supported' %(type(div)))
return self.__mul__(1.0 / div)
评论列表
文章目录