points.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:autolab_core 作者: BerkeleyAutomation 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号