All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.unibo.scafi.space.Shape.scala Maven / Gradle / Ivy

The newest version!
package it.unibo.scafi.space

/**
  * define a generic shape
  */
trait Shape {
  /**
    * the orientation type
    */
  type O
  /**
    * @return the orientation of the shape
    *
    */
  def orientation : O

  /**
    * check if a generic point is contained by the shape
    * @param p the point
    * @return true is if contained false otherwise
    */
  def contains(p : Point3D) : Boolean
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy