コード例 #1
0
    def get_orientation_degrees(sim_info: SimInfo) -> float:
        """get_orientation_degrees(sim_info)

        Retrieve the orientation of a Sim represented in degrees.

        :param sim_info: An instance of a Sim.
        :type sim_info: SimInfo
        :return: The orientation of the Sim represented in degrees.
        :rtype: float
        """
        return CommonQuaternion.to_degrees(CommonSimLocationUtils.get_orientation(sim_info))
    def get_orientation_degrees(game_object: GameObject) -> float:
        """get_orientation_in_degrees(game_object)

        Retrieve the orientation of an Object in degrees.

        :param game_object: An instance of an Object.
        :type game_object: GameObject
        :return: The orientation of the Object represented in degrees.
        :rtype: float
        """
        return CommonQuaternion.to_degrees(
            CommonObjectLocationUtils.get_orientation(game_object))