Returns this shape's axis aligned bounding box
Moment of inertia for a rotation about this shape's COM
Moment of inertia for a rotation about this shape's COM.
Creates a new body made out of tis shape
Creates a new body made out of tis shape.
Returns this shape's containing body
Returns this shape's containing body.
Flag determining this shapes ability to collide with other shapes
Flag determining this shapes ability to collide with other shapes.
Checks if the point point
is contained in this shape
Checks if the point point
is contained in this shape.
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.
zu korrigierender Wert
Density
Stellt das graphische Objekt dar
Stellt das graphische Objekt dar.
Malt einen Kreis auf g
Malt einen Kreis auf g
.
Mitte des Kreises in Weltkoordinaten
Radius des Kreises
Malt eine Linie auf g
Malt eine Linie auf g
.
Startpunkt in Weltkoordinaten
Endpunkt in Weltkoordinaten
Malt einen Punkt auf g
Malt einen Punkt auf g
.
Der Punkt wird von einem Kreis umgeben.
Punkt in Weltkoordinaten
Malt ein Polygon auf g
Malt ein Polygon auf g
.
Eckpunkte des Polygons in Weltkoordinaten
Malt einen Vektor auf g
Malt einen Vektor auf g
.
Vektor in Weltkoordinaten
Ursprungspunkt in Weltkoordinaten
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:
x
of type Any
,
x.equals(x)
should return true
.x
and y
of type
Any
, x.equals(y)
should return true
if and only
if y.equals(x)
returns true
.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)
).
the object to compare against this object for equality.
true
if the receiver object is equivalent to the argument; false
otherwise.
Malt einen massiven Kreis auf g
Malt einen massiven Kreis auf g
.
Mitte des Kreises in Weltkoordinaten
Radius des Kreises
Malt ein massives Polygon auf g
Malt ein massives Polygon auf g
.
Eckpunkte des Polygons in Weltkoordinaten
Part of the coefficient of friction for a collision between this shape and another
Part of the coefficient of friction for a collision between this shape and another. The coefficient of friction is calculated out of the product of this part and the other shape's part.
Java Graphics Objekt zur graphischen Darstellung
Java Graphics Objekt zur graphischen Darstellung
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.
Returns the mass of this shape
Returns the mass of this shape. The mass is given by volume times density.
Position of this shape's COM (in world coordinates)
Position of this shape's COM (in world coordinates).
Anzahl von Pixeln pro Meter
Anzahl von Pixeln pro Meter.
Returns the projection of this shape onto the line given by the directional vector axis
Returns the projection of this shape onto the line given by the directional vector axis
.
directional vector of the line
projection of this shape
Pointer to real object
Pointer to real object.
Local position of this shape's body COM to its COM at a body rotation of zero
Local position of this shape's body COM to its COM at a body rotation of zero.
Part of the coefficient of restitution for a collision between this shape and another
Part of the coefficient of restitution for a collision between this shape and another. The coefficient of restitution is calculated out of the product of this part and the other shape's part.
Rotation of this shape about its COM
Rotation of this shape about its COM.
Initial rotation
Initial rotation. Rotation of this shape before it was added to a body.
Skala in der die graphischen Objekte gezeichnet werden
Skala in der die graphischen Objekte gezeichnet werden.
Returns a string representation of the object
Returns a string representation of the object.
The default representation is platform dependent.
Shapes with which this shape cannot collide
Shapes with which this shape cannot collide.
Unique identification number
Unique identification number.
Volume
Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) and is used with this shape's density to calculate its mass.
Hoehe des Fensters in Pixeln
Hoehe des Fensters in Pixeln.
Creates a new body out of this shape and the shapes of body b
Creates a new body out of this shape and the shapes of body b
.
Creates a new body out of this shape and the shape s
Creates a new body out of this shape and the shape s
.