graphyx.graphics

GraphicalCollision

class GraphicalCollision(real: Collision) extends GraphicalObject with Product

Inherits

  1. Product
  2. Equals
  3. GraphicalObject
  4. Drawable
  5. AnyRef
  6. Any

Value Members

  1. def canEqual(arg0: Any): Boolean

  2. def correctY(y: Double): Double

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.

    y

    zu korrigierender Wert

    definition classes: Drawable
  3. def draw(): Unit

    Stellt das graphische Objekt dar

    Stellt das graphische Objekt dar.

  4. def drawCircle(center: Vector2D, radius: Double): Unit

    Malt einen Kreis auf g

    Malt einen Kreis auf g.

    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    definition classes: Drawable
  5. def drawLine(startPoint: Vector2D, endPoint: Vector2D): Unit

    Malt eine Linie auf g

    Malt eine Linie auf g.

    startPoint

    Startpunkt in Weltkoordinaten

    endPoint

    Endpunkt in Weltkoordinaten

    definition classes: Drawable
  6. def drawPoint(point: Vector2D): Unit

    Malt einen Punkt auf g

    Malt einen Punkt auf g.

    Der Punkt wird von einem Kreis umgeben.

    point

    Punkt in Weltkoordinaten

    definition classes: Drawable
  7. def drawPolygon(points: Seq[Vector2D]): Unit

    Malt ein Polygon auf g

    Malt ein Polygon auf g.

    points

    Eckpunkte des Polygons in Weltkoordinaten

    definition classes: Drawable
  8. def drawVector(v: Vector2D, p: Vector2D): Unit

    Malt einen Vektor auf g

    Malt einen Vektor auf g.

    v

    Vektor in Weltkoordinaten

    p

    Ursprungspunkt in Weltkoordinaten

    definition classes: Drawable
  9. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an equivalence relation:

    • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
    • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
    • It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

  10. def fillCircle(center: Vector2D, radius: Double): Unit

    Malt einen massiven Kreis auf g

    Malt einen massiven Kreis auf g.

    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    definition classes: Drawable
  11. def fillPolygon(points: Seq[Vector2D]): Unit

    Malt ein massives Polygon auf g

    Malt ein massives Polygon auf g.

    points

    Eckpunkte des Polygons in Weltkoordinaten

    definition classes: Drawable
  12. var g: Graphics2D

    Java Graphics Objekt zur graphischen Darstellung

    Java Graphics Objekt zur graphischen Darstellung

    definition classes: Drawable
  13. def hashCode(): Int

    Returns a hash code value for the object

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

  14. val normal: Vector2D

  15. val points: Iterable[Vector2D]

  16. var ppm: Double

    Anzahl von Pixeln pro Meter

    Anzahl von Pixeln pro Meter.

    definition classes: Drawable
  17. def productArity: Int

  18. def productElement(arg0: Int): Any

  19. def productElements: Iterator[Any]

  20. def productIterator: Iterator[Any]

  21. def productPrefix: String

  22. val real: Collision

    Pointer to real object

    Pointer to real object.

  23. var scale: Double

    Skala in der die graphischen Objekte gezeichnet werden

    Skala in der die graphischen Objekte gezeichnet werden.

    definition classes: Drawable
  24. def toString(): String

    Returns a string representation of the object

    Returns a string representation of the object.

    The default representation is platform dependent.

  25. var windowHeight: Int

    Hoehe des Fensters in Pixeln

    Hoehe des Fensters in Pixeln.

    definition classes: Drawable

Instance constructors

  1. new GraphicalCollision(real: Collision)

  2. new GraphicalCollision()