Commits

German Larrain  committed d11078b

collision.base.Engine: added class abstract method 'is_ray'.

  • Participants
  • Parent commits 40d8d79

Comments (0)

Files changed (1)

File ars/model/collision/base.py

 		# Like :meth:`calc_collision`, this is a @abtractclassmethod too.
 		raise NotImplementedError()
 
+	@classmethod
+	def is_ray(cls, geom):
+		"""Return whether ``geom`` is a ray-like object or not.
+
+		:param geom:
+		:type geom: type of :attr:`Geom.inner_object`
+		:return: True if ``geom`` is an instance of the class representing a
+			ray in the adapted library
+		:rtype: bool
+
+		"""
+		# Like :meth:`calc_collision`, this is a @abtractclassmethod too.
+		raise NotImplementedError()
+
 
 class Space(object):