From 66d338aec5d632927fa561a68310c8931938e9e0 Mon Sep 17 00:00:00 2001
From: Jakob Odersky
-
-
-
Object Summary | |
- object
- |
-
- Graphyx
- extends AnyRef
-
-
- |
-
- graphyx - |
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/Graphyx.scala
]
-
- object
- Graphyx
- extends
AnyRefValue Summary | |
- val
- |
- - guiActor - : GUIActor - - - | -
- val
- |
- - physicsActor - : PhysicsActor - - - | -
- val
- |
- - tests - : scala.List[Test] - - - | -
Method Summary | |
- def
- |
- - exit - : Unit - - - | -
- def
- |
- - main - (args : scala.Array[java.lang.String]) : Unit - - - | -
- def
- |
- - test - : Test - - - | -
- def
- |
- - test_= - (t : Test) : Unit - - - | -
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- tests : scala.List[Test]
-
- val
- physicsActor : PhysicsActor
-
- val
- guiActor : GUIActor
- Method Details |
- def
- test : Test
-
- def
- main(args : scala.Array[java.lang.String]) : Unit
-
- def
- exit : Unit
- - - | -
- SiMS
- |
-
Class Summary | |
- class
- |
-
- GUIActor
- extends scala.actors.Actor
-
-
- |
-
- class
- |
-
- PhysicsActor
- extends scala.actors.Actor
-
-
- |
-
- case class
- |
-
- SetWorld
- (val world : World) extends scala.Product
-
-
- |
-
Object Summary | |
- case object
- |
-
- Exit
- extends scala.Product
-
-
- |
-
- case object
- |
-
- FireEvent
- extends scala.Product
-
-
- |
-
- object
- |
-
- SetWorld
- extends (World) => SetWorld
-
-
- |
-
- case object
- |
-
- Start
- extends scala.Product
-
-
- |
-
- case object
- |
-
- Stop
- extends scala.Product
-
-
- |
-
- graphyx.actors - |
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.
+
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.
+
- - | -
- SiMS
- |
-
graphyx/actors/Exit.scala
]
- case
- object
- Exit
- extends
scala.ProductMethod Summary | |
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- protected def
- |
- - readResolve - : AnyRef - - - | -
- override final def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Method Details |
override final
- def
- toString : java.lang.String
- - The default representation is platform dependent.
override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- protected
- def
- readResolve : AnyRef
- - - | -
- SiMS
- |
-
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.
+
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.
+
- - | -
- SiMS
- |
-
graphyx/actors/FireEvent.scala
]
- case
- object
- FireEvent
- extends
scala.ProductMethod Summary | |
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- protected def
- |
- - readResolve - : AnyRef - - - | -
- override final def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Method Details |
override final
- def
- toString : java.lang.String
- - The default representation is platform dependent.
override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- protected
- def
- readResolve : AnyRef
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/actors/GUIActor.scala
]
-
- class
- GUIActor
- extends
scala.actors.ActorValue Summary | |
- val
- |
- - container - : Container - - - | -
- var
- |
-
- continue
- : Boolean
-
+
+
+
+
+ GUIActor++ class + + GUIActor extends Actor + ++
+
+
+
+
+
+
+
+
+
+
+
-
+
+ Inherits+
|
-
- Values and Variables inherited from scala.actors.Actor - | |
- scala.actors.Actor.mailbox, scala.actors.Actor.trapExit - |
Method Summary | |
- def
- |
- - act - : Unit - | -
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- container : Container
- 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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- var
- continue : Boolean
-
-
- Method Details |
- def
- act : Unit
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/actors/PhysicsActor.scala
]
-
- class
- PhysicsActor
- extends
scala.actors.ActorValue Summary | |
- var
- |
- - continue - : Boolean - - - | -
- var
- |
- - simulate - : Boolean - - - | -
- var
- |
- - world - : World - - - | -
- Values and Variables inherited from scala.actors.Actor - | |
- scala.actors.Actor.mailbox, scala.actors.Actor.trapExit - |
Method Summary | |
- def
- |
- - act - : Unit - - - | -
- def
- |
- - fps - : Int - - - | -
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- var
- world : World
-
-
-
- var
- continue : Boolean
-
- var
- simulate : Boolean
- Method Details |
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- def
- fps : Int
-
- def
- act : Unit
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/actors/SetWorld.scala
]
-
- object
- SetWorld
- extends
(World) => SetWorld- Methods inherited from scala.Function1 - | |
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/actors/SetWorld.scala
]
- case
- class
- SetWorld(val
world : World)
- extends
scala.ProductMethod Summary | |
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Method Details |
override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- 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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- def
- productElement(arg0 : Int) : Any
-
-
- - - | -
- SiMS
- |
-
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.
+
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.
+
- - | -
- SiMS
- |
-
graphyx/actors/Start.scala
]
- case
- object
- Start
- extends
scala.ProductMethod Summary | |
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- protected def
- |
- - readResolve - : AnyRef - - - | -
- override final def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Method Details |
override final
- def
- toString : java.lang.String
- - The default representation is platform dependent.
override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- protected
- def
- readResolve : AnyRef
- - - | -
- SiMS
- |
-
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.
+
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.
+
- - | -
- SiMS
- |
-
graphyx/actors/Stop.scala
]
- case
- object
- Stop
- extends
scala.ProductMethod Summary | |
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- protected def
- |
- - readResolve - : AnyRef - - - | -
- override final def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Method Details |
override final
- def
- toString : java.lang.String
- - The default representation is platform dependent.
override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- protected
- def
- readResolve : AnyRef
- - - | -
- SiMS
- |
-
Class Summary | |
- trait
- |
-
- Drawable
- extends AnyRef
-
- Enthaelt Methoden und Felder fuer graphische Darstellungen.
- Alle Klassen die dieses Trait implementieren koennen graphisch dargestellt werden.
- |
-
- case class
- |
-
- GraphicalAABB
- (val real : AABB) extends AABB with GraphicalObject
-
-
- |
-
- case class
- |
-
- GraphicalBody
- (val real : Body) extends GraphicalObject with scala.Product
-
-
- |
-
- case class
- |
-
- GraphicalCircle
- (val real : Circle) extends Circle with GraphicalShape
-
-
- |
-
- case class
- |
-
- GraphicalCollision
- (val real : Collision) extends GraphicalObject with scala.Product
-
-
- |
-
- case class
- |
-
- GraphicalDistanceJoint
- (val real : DistanceJoint) extends GraphicalJoint with scala.Product
-
-
- |
-
- trait
- |
-
- GraphicalJoint
- extends GraphicalObject
-
-
- |
-
- trait
- |
-
- GraphicalObject
- extends Drawable
-
- Only copies functional info! (e.g. Graphical world does not include shapes, bodies).
- |
-
- case class
- |
-
- GraphicalPair
- (val real : Pair) extends GraphicalObject with scala.Product
-
-
- |
-
- case class
- |
-
- GraphicalRectangle
- (val real : Rectangle) extends Rectangle with GraphicalShape
-
-
- |
-
- case class
- |
-
- GraphicalRegularPolygon
- (val real : RegularPolygon) extends RegularPolygon with GraphicalShape
-
-
- |
-
- case class
- |
-
- GraphicalRevoluteJoint
- (val real : RevoluteJoint) extends GraphicalJoint with scala.Product
-
-
- |
-
- trait
- |
-
- GraphicalShape
- extends Shape with GraphicalObject
-
-
- |
-
- case class
- |
-
- GraphicalSpringJoint
- (val real : SpringJoint) extends GraphicalJoint with scala.Product
-
-
- |
-
- case class
- |
-
- GraphicalWorld
- (val real : World) extends scala.Product
-
-
- |
-
- case class
- |
-
- Scene
- (val real : World) extends scala.Product
-
-
- |
-
Object Summary | |
- object
- |
-
- GraphicalAABB
- extends (AABB) => GraphicalAABB
-
-
- |
-
- object
- |
-
- GraphicalBody
- extends (Body) => GraphicalBody
-
-
- |
-
- object
- |
-
- GraphicalCircle
- extends (Circle) => GraphicalCircle
-
-
- |
-
- object
- |
-
- GraphicalCollision
- extends (Collision) => GraphicalCollision
-
-
- |
-
- object
- |
-
- GraphicalDistanceJoint
- extends (DistanceJoint) => GraphicalDistanceJoint
-
-
- |
-
- object
- |
-
- GraphicalPair
- extends (Pair) => GraphicalPair
-
-
- |
-
- object
- |
-
- GraphicalRectangle
- extends (Rectangle) => GraphicalRectangle
-
-
- |
-
- object
- |
-
- GraphicalRegularPolygon
- extends (RegularPolygon) => GraphicalRegularPolygon
-
-
- |
-
- object
- |
-
- GraphicalRevoluteJoint
- extends (RevoluteJoint) => GraphicalRevoluteJoint
-
-
- |
-
- object
- |
-
- GraphicalSpringJoint
- extends (SpringJoint) => GraphicalSpringJoint
-
-
- |
-
- object
- |
-
- GraphicalWorld
- extends (World) => GraphicalWorld
-
-
- |
-
- object
- |
-
- Parser
- extends AnyRef
-
-
- |
-
- object
- |
-
- Scene
- extends (World) => Scene
-
-
- |
-
- graphyx.graphics - |
- - | -
- SiMS
- |
-
graphyx/graphics/Drawable.scala
]
-
- trait
- Drawable
- extends
AnyRefValue Summary | |
- var
- |
-
- g
- : java.awt.Graphics
-
- Java Graphics Objekt zur graphischen Darstellung
- |
-
- var
- |
-
- ppm
- : Double
-
- Anzahl von Pixeln pro Meter.
- |
-
- var
- |
-
- scale
- : Double
-
- Skala in der die graphischen Objekte gezeichnet werden.
- |
-
- var
- |
-
- windowHeight
- : Int
-
- Hoehe des Fensters in Pixeln.
- |
-
Method Summary | |
- def
- |
-
- correctY
- (y : Double) : Double
-
- Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.
- |
-
- abstract def
- |
-
- draw
- : Unit
-
- Stellt das graphische Objekt dar.
- |
-
- def
- |
-
- drawCircle
- (center : Vector2D, radius : Double) : Unit
-
- Malt einen Kreis auf
- g . |
-
- def
- |
-
- drawLine
- (startPoint : Vector2D, endPoint : Vector2D) : Unit
-
- Malt eine Linie auf
- g . |
-
- def
- |
-
- drawPoint
- (point : Vector2D) : Unit
-
- Malt einen Punkt auf
- g . |
-
- def
- |
-
- drawPolygon
- (points : scala.Seq[Vector2D]) : Unit
-
- Malt ein Polygon auf
- g . |
-
- def
- |
-
- drawVector
- (v : Vector2D, p : Vector2D) : Unit
-
- Malt einen Vektor auf
- g . |
-
- def
- |
-
- fillCircle
- (center : Vector2D, radius : Double) : Unit
-
- Malt einen massiven Kreis auf
- g . |
-
- def
- |
-
- fillPolygon
- (points : scala.Seq[Vector2D]) : Unit
-
- Malt ein massives Polygon auf
- g . |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Enthaelt Methoden und Felder fuer graphische Darstellungen. +Alle Klassen die dieses Trait implementieren koennen graphisch dargestellt werden.
Value Details |
- var
- g : java.awt.Graphics
-
- var
- ppm : Double
-
- var
- scale : Double
-
- var
- windowHeight : Int
- Method Details |
y -
zu korrigierender Wertg
.startPoint -
Startpunkt in WeltkoordinatenendPoint -
Endpunkt in Weltkoordinateng
.points -
Eckpunkte des Polygons in Weltkoordinaten
- def
- drawPolygon(points : scala.Seq[Vector2D]) : Unit
-
-
-
- g
.points -
Eckpunkte des Polygons in Weltkoordinateng
.center -
Mitte des Kreises in Weltkoordinatenradius -
Radius des Kreisesg
.center -
Mitte des Kreises in Weltkoordinatenradius -
Radius des KreisesKorrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.
zu korrigierender Wert
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
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.
+
Anzahl von Pixeln pro Meter
Anzahl von Pixeln pro Meter.
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. +
Hoehe des Fensters in Pixeln
Hoehe des Fensters in Pixeln.
- def
- drawPoint(point : Vector2D) : Unit
- g
.
- - Der Punkt wird von einem Kreis umgeben.
point -
Punkt in Weltkoordinateng
.v -
Vektor in Weltkoordinatenp -
Ursprungspunkt in Weltkoordinatenabstract
- def
- draw : Unit
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalAABB.scala
]
-
- object
- GraphicalAABB
- extends
(AABB) => GraphicalAABB- Methods inherited from scala.Function1 - | |
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalAABB.scala
]
- case
- class
- GraphicalAABB(val
real : AABB)
- extends
AABB with
GraphicalObject- Values and Variables inherited from Drawable - | |
- g, ppm, scale, windowHeight - |
- Values and Variables inherited from AABB - | |
- minVertex, maxVertex - |
Method Summary | |
- override def
- |
-
- draw
- : Unit
-
- Stellt das graphische Objekt dar.
- |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from Drawable - | |
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector - |
- Methods inherited from AABB - | |
- overlaps - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Method Details |
override
- def
- draw : Unit
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
-
-
-
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.
zu korrigierender Wert
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
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.
+
Checks this AABB with box
for overlap
Checks this AABB with box
for overlap.
AABB with which to check for overlap
Anzahl von Pixeln pro Meter
Anzahl von Pixeln pro Meter.
Pointer to real object
Pointer to real object.
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. +
Hoehe des Fensters in Pixeln
Hoehe des Fensters in Pixeln.
override
- def
- productArity : Int
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalBody.scala
]
-
- object
- GraphicalBody
- extends
(Body) => GraphicalBody- Methods inherited from scala.Function1 - | |
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalBody.scala
]
- case
- class
- GraphicalBody(val
real : Body)
- extends
GraphicalObject with
scala.ProductValue Summary | |
- val
- |
- - fixed - : Boolean - - - | -
- val
- |
- - monitor - : Boolean - - - | -
- val
- |
- - pos - : Vector2D - - - | -
- Values and Variables inherited from Drawable - | |
- g, ppm, scale, windowHeight - |
Method Summary | |
- def
- |
-
- draw
- : Unit
-
- Stellt das graphische Objekt dar.
- |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from Drawable - | |
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- pos : Vector2D
-
- val
- fixed : Boolean
-
- val
- monitor : Boolean
- Method Details |
- def
- draw : Unit
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
-
-
-
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.
zu korrigierender Wert
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
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.
+
Anzahl von Pixeln pro Meter
Anzahl von Pixeln pro Meter.
Pointer to real object
Pointer to real object.
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. +
Hoehe des Fensters in Pixeln
Hoehe des Fensters in Pixeln.
override
- def
- productArity : Int
- override
- def
- productElement(arg0 : Int) : Any
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalCircle.scala
]
-
- object
- GraphicalCircle
- extends
(Circle) => GraphicalCircle- Methods inherited from scala.Function1 - | |
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalCircle.scala
]
- case
- class
- GraphicalCircle(val
real : Circle)
- extends
Circle with
GraphicalShape- Values and Variables inherited from GraphicalShape - | |
- uid - |
- Values and Variables inherited from Drawable - | |
- g, ppm, scale, windowHeight - |
- Values and Variables inherited from Circle - | |
- radius, density, volume, I - |
- Values and Variables inherited from Shape - | |
- collidable, restitution, friction, pos, rotation, rotation0, refLocalPos, transientShapes - |
Method Summary | |
- override def
- |
-
- draw
- : Unit
-
- Stellt das graphische Objekt dar.
- |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from Drawable - | |
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector - |
- Methods inherited from Circle - | |
- AABB, project, contains - |
- Methods inherited from Shape - | |
- mass, body, asBody, ~, ~ - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Method Details |
override
- def
- draw : Unit
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
-
-
-
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- Returns this shape's axis aligned bounding box
+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
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
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
+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
.
override
- def
- productArity : Int
- override
- def
- productElement(arg0 : Int) : Any
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalCollision.scala
]
-
- object
- GraphicalCollision
- extends
(Collision) => GraphicalCollision- Methods inherited from scala.Function1 - | |
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalCollision.scala
]
- case
- class
- GraphicalCollision(val
real : Collision)
- extends
GraphicalObject with
scala.ProductValue Summary | |
- val
- |
- - normal - : Vector2D - - - | -
- val
- |
- - points - : scala.Iterable[Vector2D] - - - | -
- Values and Variables inherited from Drawable - | |
- g, ppm, scale, windowHeight - |
Method Summary | |
- def
- |
-
- draw
- : Unit
-
- Stellt das graphische Objekt dar.
- |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from Drawable - | |
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- def
- draw : Unit
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
-
-
-
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.
zu korrigierender Wert
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
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.
+
Anzahl von Pixeln pro Meter
Anzahl von Pixeln pro Meter.
Pointer to real object
Pointer to real object.
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. +
Hoehe des Fensters in Pixeln
Hoehe des Fensters in Pixeln.
override
- def
- productArity : Int
- override
- def
- productElement(arg0 : Int) : Any
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalDistanceJoint.scala
]
-
- object
- GraphicalDistanceJoint
- extends
(DistanceJoint) => GraphicalDistanceJoint- Methods inherited from scala.Function1 - | |
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalDistanceJoint.scala
]
- case
- class
- GraphicalDistanceJoint(val
real : DistanceJoint)
- extends
GraphicalJoint with
scala.ProductValue Summary | |
- val
- |
- - connection1 - : Vector2D - - - | -
- val
- |
- - connection2 - : Vector2D - - - | -
- Values and Variables inherited from Drawable - | |
- g, ppm, scale, windowHeight - |
Method Summary | |
- def
- |
-
- draw
- : Unit
-
- Stellt das graphische Objekt dar.
- |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from Drawable - | |
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- def
- draw : Unit
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
-
-
-
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.
zu korrigierender Wert
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
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.
+
Anzahl von Pixeln pro Meter
Anzahl von Pixeln pro Meter.
Pointer to real object
Pointer to real object.
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. +
Hoehe des Fensters in Pixeln
Hoehe des Fensters in Pixeln.
override
- def
- productArity : Int
- override
- def
- productElement(arg0 : Int) : Any
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalJoint.scala
]
-
- trait
- GraphicalJoint
- extends
GraphicalObjectValue Summary | |
- abstract val
- |
-
- real
- : Joint
-
- Pointer to real object.
- |
-
- Values and Variables inherited from Drawable - | |
- g, ppm, scale, windowHeight - |
- Methods inherited from Drawable - | |
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- Methods inherited from GraphicalObject - | |
- draw (abstract) - |
Value Details |
abstract
- val
- real : Joint
-
-
-
- - - | -
- SiMS
- |
-
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.
zu korrigierender Wert
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
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.
+
Anzahl von Pixeln pro Meter
Anzahl von Pixeln pro Meter.
Pointer to real object
Pointer to real object.
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. +
Hoehe des Fensters in Pixeln
Hoehe des Fensters in Pixeln.
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalObject.scala
]
-
- trait
- GraphicalObject
- extends
DrawableValue Summary | |
- abstract val
- |
-
- real
- : AnyRef
+
+
+
+
+ GraphicalObject++ trait + + GraphicalObject extends Drawable + ++
+
+
+ Only copies functional info! (e.g. Graphical world does not include shapes, bodies).
+ known subclasses: GraphicalJoint, GraphicalShape, GraphicalPair, GraphicalCollision, GraphicalBody, GraphicalAABB
+
+
+
+
+
-
+
+ Inherits+
Pointer to real object.
- |
-
- Values and Variables inherited from Drawable - | |
- g, ppm, scale, windowHeight - |
Method Summary | |
- abstract def
- |
-
- draw
- : Unit
- Stellt das graphische Objekt dar.
- |
-
- Methods inherited from Drawable - | |
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.
zu korrigierender Wert
Value Details |
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
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.
+
Anzahl von Pixeln pro Meter
Anzahl von Pixeln pro Meter.
Pointer to real object
Pointer to real object.
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. +
Hoehe des Fensters in Pixeln
Hoehe des Fensters in Pixeln.
abstract
- val
- real : AnyRef
-
-
-
- Method Details |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalPair.scala
]
-
- object
- GraphicalPair
- extends
(Pair) => GraphicalPair- Methods inherited from scala.Function1 - | |
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalPair.scala
]
- case
- class
- GraphicalPair(val
real : Pair)
- extends
GraphicalObject with
scala.ProductValue Summary | |
- val
- |
- - pos1 - : Vector2D - - - | -
- val
- |
- - pos2 - : Vector2D - - - | -
- Values and Variables inherited from Drawable - | |
- g, ppm, scale, windowHeight - |
Method Summary | |
- def
- |
-
- draw
- : Unit
-
- Stellt das graphische Objekt dar.
- |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from Drawable - | |
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- def
- draw : Unit
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
-
-
-
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.
zu korrigierender Wert
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
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.
+
Anzahl von Pixeln pro Meter
Anzahl von Pixeln pro Meter.
Pointer to real object
Pointer to real object.
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. +
Hoehe des Fensters in Pixeln
Hoehe des Fensters in Pixeln.
override
- def
- productArity : Int
- override
- def
- productElement(arg0 : Int) : Any
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalRectangle.scala
]
-
- object
- GraphicalRectangle
- extends
(Rectangle) => GraphicalRectangle- Methods inherited from scala.Function1 - | |
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalRectangle.scala
]
- case
- class
- GraphicalRectangle(val
real : Rectangle)
- extends
Rectangle with
GraphicalShape- Values and Variables inherited from GraphicalShape - | |
- uid - |
- Values and Variables inherited from Drawable - | |
- g, ppm, scale, windowHeight - |
- Values and Variables inherited from Rectangle - | |
- halfWidth, halfHeight, density, volume, I - |
- Values and Variables inherited from Shape - | |
- collidable, restitution, friction, pos, rotation, rotation0, refLocalPos, transientShapes - |
Method Summary | |
- override def
- |
-
- draw
- : Unit
-
- Stellt das graphische Objekt dar.
- |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from Drawable - | |
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector - |
- Methods inherited from Rectangle - | |
- halfDiags, vertices - |
- Methods inherited from ConvexPolygon - | |
- sides, project, AABB, contains - |
- Methods inherited from Shape - | |
- mass, body, asBody, ~, ~ - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Method Details |
override
- def
- draw : Unit
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
-
-
-
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- Returns this polygon's axis aligned bounding box
Returns this polygon's axis aligned bounding box.
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 polygon
Checks if the point point
is contained in this polygon.
+
+A ray is created, originating from the point and following an arbitrary direction (X-Axis was chosen). +The number of intersections between the ray and this polygon's sides (including vertices) is counted. +The amount of intersections with vertices is substracted form the previuos number. +If the latter number is odd, the point is contained in the polygon.
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 the vectors from the center to the vertices of this rectangle
Returns the vectors from the center to the vertices of this rectangle. +The first vertex is the upper-right vertex at a rotation of 0. +Vertices are ordered counter-clockwise.
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 polygon onto the line given by the directional vector axis
Returns the projection of this polygon onto the line given by the directional vector axis
.
directional vector of the line
projection of this polygon
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 all sides of this polygon
Returns all sides of this polygon. The sides are ordered counter-clockwise, the first vertex of the side +giving the side index.
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.
Returns the position vectors of this rectangle's vertices
Returns the position vectors of this rectangle's vertices. +The first vertex is the upper-right vertex at a rotation of 0. +Vertices are ordered counter-clockwise.@return position vectors of the vertices
Volume
+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
.
override
- def
- productArity : Int
- override
- def
- productElement(arg0 : Int) : Any
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalRegularPolygon.scala
]
-
- object
- GraphicalRegularPolygon
- extends
(RegularPolygon) => GraphicalRegularPolygon- Methods inherited from scala.Function1 - | |
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalRegularPolygon.scala
]
- case
- class
- GraphicalRegularPolygon(val
real : RegularPolygon)
- extends
RegularPolygon with
GraphicalShape- Values and Variables inherited from GraphicalShape - | |
- uid - |
- Values and Variables inherited from Drawable - | |
- g, ppm, scale, windowHeight - |
- Values and Variables inherited from RegularPolygon - | |
- n, radius, density, volume, I - |
- Values and Variables inherited from Shape - | |
- collidable, restitution, friction, pos, rotation, rotation0, refLocalPos, transientShapes - |
Method Summary | |
- override def
- |
-
- draw
- : Unit
-
- Stellt das graphische Objekt dar.
- |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from Drawable - | |
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector - |
- Methods inherited from RegularPolygon - | |
- halfDiags, vertices - |
- Methods inherited from ConvexPolygon - | |
- sides, project, AABB, contains - |
- Methods inherited from Shape - | |
- mass, body, asBody, ~, ~ - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Method Details |
override
- def
- draw : Unit
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
-
-
-
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- Returns this polygon's axis aligned bounding box
Returns this polygon'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 polygon
Checks if the point point
is contained in this polygon.
+
+A ray is created, originating from the point and following an arbitrary direction (X-Axis was chosen). +The number of intersections between the ray and this polygon's sides (including vertices) is counted. +The amount of intersections with vertices is substracted form the previuos number. +If the latter number is odd, the point is contained in the polygon.
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.
zu korrigierender Wert
Density
Density. (Mass per area)
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 polygon onto the line given by the directional vector axis
Returns the projection of this polygon onto the line given by the directional vector axis
.
directional vector of the line
projection of this polygon
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 all sides of this polygon
Returns all sides of this polygon. The sides are ordered counter-clockwise, the first vertex of the side +giving the side index.
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.
Returns positions of all vertices of this Polygon
Returns positions of all vertices of this Polygon. Vertices are ordered counter-clockwise.
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
.
override
- def
- productArity : Int
- override
- def
- productElement(arg0 : Int) : Any
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalRevoluteJoint.scala
]
-
- object
- GraphicalRevoluteJoint
- extends
(RevoluteJoint) => GraphicalRevoluteJoint- Methods inherited from scala.Function1 - | |
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalRevoluteJoint.scala
]
- case
- class
- GraphicalRevoluteJoint(val
real : RevoluteJoint)
- extends
GraphicalJoint with
scala.ProductValue Summary | |
- val
- |
- - connection1 - : Vector2D - - - | -
- Values and Variables inherited from Drawable - | |
- g, ppm, scale, windowHeight - |
Method Summary | |
- def
- |
-
- draw
- : Unit
-
- Stellt das graphische Objekt dar.
- |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from Drawable - | |
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- def
- draw : Unit
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
-
-
-
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.
zu korrigierender Wert
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
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.
+
Anzahl von Pixeln pro Meter
Anzahl von Pixeln pro Meter.
Pointer to real object
Pointer to real object.
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. +
Hoehe des Fensters in Pixeln
Hoehe des Fensters in Pixeln.
override
- def
- productArity : Int
- override
- def
- productElement(arg0 : Int) : Any
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalShape.scala
]
-
- trait
- GraphicalShape
- extends
Shape with
GraphicalObjectValue Summary | |
- abstract val
- |
-
- real
- : Shape
+
+
+
+
+ GraphicalShape++ trait + + GraphicalShape extends Shape with GraphicalObject + ++
+
+
+
+
+
+
+
+
+
+
+
-
+
+ Inherits+
Pointer to real object.
- |
-
- override val
- |
-
- uid
- : Int
- Unique identification number.
- |
-
- Values and Variables inherited from Drawable - | |
- g, ppm, scale, windowHeight - |
- Values and Variables inherited from Shape - | |
- density (abstract), volume (abstract), I (abstract), collidable, restitution, friction, pos, rotation, rotation0, refLocalPos, transientShapes - |
- Methods inherited from Drawable - | |
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector - |
- Methods inherited from Shape - | |
- AABB (abstract), project (abstract), contains (abstract), mass, body, asBody, ~, ~ - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- Methods inherited from GraphicalObject - | |
- draw (abstract) - |
Returns this shape's axis aligned bounding box
Returns this shape's axis aligned bounding box.
Value Details |
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
.
abstract
- val
- real : Shape
-
-
-
- override
- val
- uid : Int
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalSpringJoint.scala
]
-
- object
- GraphicalSpringJoint
- extends
(SpringJoint) => GraphicalSpringJoint- Methods inherited from scala.Function1 - | |
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalSpringJoint.scala
]
- case
- class
- GraphicalSpringJoint(val
real : SpringJoint)
- extends
GraphicalJoint with
scala.ProductValue Summary | |
- val
- |
- - connection1 - : Vector2D - - - | -
- val
- |
- - connection2 - : Vector2D - - - | -
- Values and Variables inherited from Drawable - | |
- g, ppm, scale, windowHeight - |
Method Summary | |
- def
- |
-
- draw
- : Unit
-
- Stellt das graphische Objekt dar.
- |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from Drawable - | |
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- def
- draw : Unit
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
-
-
-
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.
zu korrigierender Wert
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
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.
+
Anzahl von Pixeln pro Meter
Anzahl von Pixeln pro Meter.
Pointer to real object
Pointer to real object.
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. +
Hoehe des Fensters in Pixeln
Hoehe des Fensters in Pixeln.
override
- def
- productArity : Int
- override
- def
- productElement(arg0 : Int) : Any
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalWorld.scala
]
-
- object
- GraphicalWorld
- extends
(World) => GraphicalWorld- Methods inherited from scala.Function1 - | |
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/GraphicalWorld.scala
]
- case
- class
- GraphicalWorld(val
real : World)
- extends
scala.ProductValue Summary | |
- val
- |
- - enableCollisionDetection - : Boolean - - - | -
- val
- |
- - enablePositionCorrection - : Boolean - - - | -
- val
- |
- - gravity - : Vector2D - - - | -
- val
- |
- - iterations - : Int - - - | -
- val
- |
- - monitorResults - : scala.Seq[java.lang.String] - - - | -
- val
- |
- - overCWarning - : Boolean - - - | -
- val
- |
- - time - : Double - - - | -
- val
- |
- - timeStep - : Double - - - | -
Method Summary | |
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- time : Double
-
- val
- timeStep : Double
-
- val
- iterations : Int
-
- val
- overCWarning : Boolean
-
- val
- gravity : Vector2D
-
- val
- monitorResults : scala.Seq[java.lang.String]
-
- val
- enableCollisionDetection : Boolean
-
- val
- enablePositionCorrection : Boolean
- Method Details |
override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- 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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- def
- productElement(arg0 : Int) : Any
-
-
- - - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/graphics/Parser.scala
]
-
- object
- Parser
- extends
AnyRefValue Summary | |
- val
- |
- - throwOnUnknown - : Boolean - - - | -
Method Summary | |
- def
- |
-
- toGraphical
- (real : Shape) : GraphicalShape with scala.Product
-
-
- |
-
- def
- |
- - toGraphical - (real : Pair) : GraphicalPair - - - | -
- def
- |
- - toGraphical - (real : AABB) : GraphicalAABB - - - | -
- def
- |
- - toGraphical - (real : Body) : GraphicalBody - - - | -
- def
- |
- - toGraphical - (real : Collision) : GraphicalCollision - - - | -
- def
- |
- - toGraphical - (real : Joint) : GraphicalJoint - - - | -
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- def
- toGraphical(real : Shape) : GraphicalShape with
scala.Product
-
- def
- toGraphical(real : Joint) : GraphicalJoint
-
- def
- toGraphical(real : Collision) : GraphicalCollision
-
- def
- toGraphical(real : Pair) : GraphicalPair
-
- def
- toGraphical(real : AABB) : GraphicalAABB
-
- def
- toGraphical(real : Body) : GraphicalBody
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/Scene.scala
]
-
- object
- Scene
- extends
(World) => Scene- Methods inherited from scala.Function1 - | |
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/graphics/Scene.scala
]
- case
- class
- Scene(val
real : World)
- extends
scala.ProductValue Summary | |
- val
- |
- - aabbs - : scala.Seq[GraphicalAABB] - - - | -
- val
- |
- - bodies - : scala.Seq[GraphicalBody] - - - | -
- val
- |
- - collisions - : scala.Seq[GraphicalCollision] - - - | -
- val
- |
- - fps - : Int - - - | -
- val
- |
- - joints - : scala.Seq[GraphicalJoint] - - - | -
- val
- |
- - pairs - : scala.Seq[GraphicalPair] - - - | -
- val
- |
-
- shapes
- : scala.Seq[GraphicalShape with scala.Product]
-
-
- |
-
- val
- |
- - world - : GraphicalWorld - - - | -
Method Summary | |
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- world : GraphicalWorld
-
- val
- shapes : scala.Seq[GraphicalShape with
scala.Product]
-
- val
- joints : scala.Seq[GraphicalJoint]
-
- val
- bodies : scala.Seq[GraphicalBody]
-
- val
- collisions : scala.Seq[GraphicalCollision]
-
- val
- pairs : scala.Seq[GraphicalPair]
-
- val
- aabbs : scala.Seq[GraphicalAABB]
-
- val
- fps : Int
- Method Details |
override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- 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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- def
- productElement(arg0 : Int) : Any
-
-
- - - | -
- SiMS
- |
-
Enthaelt Methoden und Felder fuer graphische Darstellungen
+Only copies functional info! (e
+Class Summary | |
- class
- |
-
- AboutHelpFrame
- extends scala.swing.Frame
-
-
- |
-
- class
- |
-
- BodyPopup
- extends PopupMenu
-
-
- |
-
- class
- |
-
- Container
- extends AnyRef
-
-
- |
-
- class
- |
-
- ControlPanel
- (container : Container) extends scala.swing.BoxPanel
-
-
- |
-
- class
- |
-
- GrabbedBody
- (b : Body, point : Vector2D) extends AnyRef
-
-
- |
-
- class
- |
-
- GravityPanel
- (container : Container) extends scala.swing.GridBagPanel
-
-
- |
-
- class
- |
-
- InfoPanel
- (container : Container) extends scala.swing.BoxPanel
-
-
- |
-
- class
- |
-
- MainFrame
- (container : Container) extends scala.swing.Frame
-
-
- |
-
- class
- |
-
- MainPanel
- (container : Container) extends scala.swing.GridBagPanel
-
-
- |
-
- class
- |
-
- MenuHelp
- extends scala.swing.Menu
-
-
- |
-
- class
- |
-
- MenuPanel
- (container : Container) extends scala.swing.BoxPanel
-
-
- |
-
- class
- |
-
- OptionsPanel
- (container : Container) extends scala.swing.GridPanel
-
-
- |
-
- class
- |
-
- PopupMenu
- extends scala.swing.Component
-
-
- |
-
- class
- |
-
- ShapeInfoPanel
- (container : Container) extends scala.swing.GridPanel
-
-
- |
-
- class
- |
-
- WorldPanel
- (container : Container) extends scala.swing.BoxPanel
-
-
- |
-
Object Summary | |
- object
- |
-
- AboutHelpFrame
- extends AnyRef
-
-
- |
-
- graphyx.gui - |
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/gui/AboutHelpFrame.scala
]
-
- object
- AboutHelpFrame
- extends
AnyRefValue Summary | |
- val
- |
- - frame - : AboutHelpFrame - - - | -
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/gui/AboutHelpFrame.scala
]
-
- class
- AboutHelpFrame
- extends
scala.swing.Frame- Values and Variables inherited from scala.swing.Frame - | |
- scala.swing.Frame.peer - |
- Values and Variables inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.listeners - |
- Values and Variables inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.reactions - |
- Methods inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish - |
- Methods inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo - |
- Methods inherited from scala.swing.RootPanel - | |
- scala.swing.RootPanel.contents - |
- Methods inherited from scala.Proxy - | |
- scala.Proxy.hashCode, scala.Proxy.equals, scala.Proxy.toString - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
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)
).
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/gui/BodyPopup.scala
]
-
- class
- BodyPopup
- extends
PopupMenuValue Summary | |
- val
- |
- - btnClose - : scala.swing.MenuItem - - - | -
- val
- |
- - chckFixed - : scala.swing.CheckMenuItem - - - | -
- val
- |
- - chckMonitor - : scala.swing.CheckMenuItem - - - | -
- Values and Variables inherited from PopupMenu - | |
- peer - |
- Values and Variables inherited from scala.swing.Component - | |
- scala.swing.Component.initP - |
- Values and Variables inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.listeners - |
- Values and Variables inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.reactions - |
Method Summary | |
- def
- |
- - body - : Body - - - | -
- def
- |
- - body_= - (newBody : Body) : Unit - - - | -
- Methods inherited from PopupMenu - | |
- add, setVisible - |
- Methods inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish - |
- Methods inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo - |
- Methods inherited from scala.Proxy - | |
- scala.Proxy.hashCode, scala.Proxy.equals - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- chckMonitor : scala.swing.CheckMenuItem
-
-
-
- val
- chckFixed : scala.swing.CheckMenuItem
-
- val
- btnClose : scala.swing.MenuItem
- Method Details |
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)
).
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- def
- body : Body
-
- def
- body_=(newBody : Body) : Unit
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/gui/Container.scala
]
-
- class
- Container
- extends
AnyRefValue Summary | |
- val
- |
- - mainFrame - : MainFrame - - - | -
- var
- |
- - scene - : Scene - - - | -
Method Summary | |
- def
- |
- - exitGUI - : Unit - - - | -
- def
- |
- - show - : Unit - - - | -
- def
- |
- - update - (s : Scene) : Unit - - - | -
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- def
- exitGUI : Unit
-
-
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/gui/ControlPanel.scala
]
-
- class
- ControlPanel(container : Container)
- extends
scala.swing.BoxPanelValue Summary | |
- val
- |
- - btnExit - : scala.swing.Button - - - | -
- val
- |
- - btnFire - : scala.swing.Button - - - | -
- val
- |
- - btnReset - : scala.swing.Button - - - | -
- val
- |
- - btnStart - : scala.swing.Button - - - | -
- val
- |
- - btnStep - : scala.swing.Button - - - | -
- val
- |
- - btnStop - : scala.swing.Button - - - | -
- val
- |
- - cboTest - : scala.swing.ComboBox[Test] - - - | -
- Values and Variables inherited from scala.swing.BoxPanel - | |
- scala.swing.BoxPanel.peer - |
- Values and Variables inherited from scala.swing.SequentialContainer.Wrapper - | |
- scala.swing.SequentialContainer.Wrapper.contents - |
- Values and Variables inherited from scala.swing.Container.Wrapper - | |
- scala.swing.Container.Wrapper._contents - |
- Values and Variables inherited from scala.swing.Component - | |
- scala.swing.Component.initP - |
- Values and Variables inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.listeners - |
- Values and Variables inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.reactions - |
- Methods inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish - |
- Methods inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo - |
- Methods inherited from scala.Proxy - | |
- scala.Proxy.hashCode, scala.Proxy.equals - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- btnStart : scala.swing.Button
-
- val
- btnStep : scala.swing.Button
-
- val
- btnStop : scala.swing.Button
-
-
-
- val
- btnExit : scala.swing.Button
-
- val
- btnFire : scala.swing.Button
- 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)
).
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- val
- btnReset : scala.swing.Button
-
- val
- cboTest : scala.swing.ComboBox[Test]
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/gui/GrabbedBody.scala
]
-
- class
- GrabbedBody(b : Body, point : Vector2D)
- extends
AnyRefValue Summary | |
- val
- |
- - r - : Vector2D - - - | -
- val
- |
-
- wasFixed
- : Boolean
-
+
+
+
+
+ GrabbedBody++ class + + GrabbedBody extends AnyRef + ++
+
+
+
+
+
+
+
+
+
+
+
-
+
+ Inherits+
|
-
Method Summary | |
- def
- |
- - body - : Body - | -
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- r : Vector2D
- 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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- val
- wasFixed : Boolean
-
-
- Method Details |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/gui/GravityPanel.scala
]
-
- class
- GravityPanel(container : Container)
- extends
scala.swing.GridBagPanelValue Summary | |
- val
- |
- - c - : scala.swing.GridBagPanel.Constraints - - - | -
- val
- |
- - lblX - : scala.swing.Label - - - | -
- val
- |
- - lblY - : scala.swing.Label - - - | -
- val
- |
- - sldX - : scala.swing.Slider - - - | -
- val
- |
- - sldY - : scala.swing.Slider - - - | -
- Values and Variables inherited from scala.swing.GridBagPanel - | |
- scala.swing.GridBagPanel.peer - |
- Values and Variables inherited from scala.swing.Container.Wrapper - | |
- scala.swing.Container.Wrapper._contents - |
- Values and Variables inherited from scala.swing.Component - | |
- scala.swing.Component.initP - |
- Values and Variables inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.listeners - |
- Values and Variables inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.reactions - |
Method Summary | |
- def
- |
- - update - : Unit - - - | -
- Methods inherited from scala.swing.GridBagPanel - | |
- scala.swing.GridBagPanel.pair2Constraints, scala.swing.GridBagPanel.constraintsFor, scala.swing.GridBagPanel.areValid, scala.swing.GridBagPanel.add - |
- Methods inherited from scala.swing.LayoutContainer - | |
- scala.swing.LayoutContainer.layout - |
- Methods inherited from scala.swing.Container.Wrapper - | |
- scala.swing.Container.Wrapper.contents - |
- Methods inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish - |
- Methods inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo - |
- Methods inherited from scala.Proxy - | |
- scala.Proxy.hashCode, scala.Proxy.equals - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- sldX : scala.swing.Slider
-
-
-
- val
- lblX : scala.swing.Label
-
- val
- sldY : scala.swing.Slider
- 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)
).
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- val
- lblY : scala.swing.Label
- Method Details |
- def
- update : Unit
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/gui/InfoPanel.scala
]
-
- class
- InfoPanel(container : Container)
- extends
scala.swing.BoxPanelValue Summary | |
- val
- |
-
- out
- : scala.swing.TextArea
-
+
+
+
+
+ InfoPanel++ class + + InfoPanel extends BoxPanel + ++
+
+
+
+
+
+
+
+
+
+
+
-
+
+ Inherits+
|
-
- Values and Variables inherited from scala.swing.BoxPanel - | |
- scala.swing.BoxPanel.peer - |
- Values and Variables inherited from scala.swing.SequentialContainer.Wrapper - | |
- scala.swing.SequentialContainer.Wrapper.contents - |
- Values and Variables inherited from scala.swing.Container.Wrapper - | |
- scala.swing.Container.Wrapper._contents - |
- Values and Variables inherited from scala.swing.Component - | |
- scala.swing.Component.initP - |
- Values and Variables inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.listeners - |
- Values and Variables inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.reactions - |
Method Summary | |
- def
- |
- - update - : Unit - | -
- Methods inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish - |
- Methods inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo - |
- Methods inherited from scala.Proxy - | |
- scala.Proxy.hashCode, scala.Proxy.equals - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
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)
).
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- val
- out : scala.swing.TextArea
-
-
- Method Details |
- def
- update : Unit
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/gui/MainFrame.scala
]
-
- class
- MainFrame(container : Container)
- extends
scala.swing.FrameValue Summary | |
- val
- |
-
- mainPanel
- : MainPanel
+
+
+
+
+ MainFrame++ class + + MainFrame extends Frame + ++
+
+
+
+
+
+
+
+
+
+
+
-
+
+ Inherits+
|
-
- Values and Variables inherited from scala.swing.Frame - | |
- scala.swing.Frame.peer - |
- Values and Variables inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.listeners - |
- Values and Variables inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.reactions - |
- Methods inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish - |
- Methods inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo - |
- Methods inherited from scala.swing.RootPanel - | |
- scala.swing.RootPanel.contents - |
- Methods inherited from scala.Proxy - | |
- scala.Proxy.hashCode, scala.Proxy.equals, scala.Proxy.toString - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
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)
).
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- val
- mainPanel : MainPanel
-
-
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/gui/MainPanel.scala
]
-
- class
- MainPanel(container : Container)
- extends
scala.swing.GridBagPanelValue Summary | |
- val
- |
- - c - : scala.swing.GridBagPanel.Constraints - - - | -
- val
- |
- - controlPanel - : ControlPanel - - - | -
- val
- |
- - gravityPanel - : GravityPanel - - - | -
- val
- |
- - infoPanel - : InfoPanel - - - | -
- val
- |
- - menuPanel - : MenuPanel - - - | -
- val
- |
- - optionsPanel - : OptionsPanel - - - | -
- val
- |
- - shapeInfoPanel - : ShapeInfoPanel - - - | -
- val
- |
- - splitter - : scala.swing.SplitPane - - - | -
- val
- |
- - worldPanel - : WorldPanel - - - | -
- Values and Variables inherited from scala.swing.GridBagPanel - | |
- scala.swing.GridBagPanel.peer - |
- Values and Variables inherited from scala.swing.Container.Wrapper - | |
- scala.swing.Container.Wrapper._contents - |
- Values and Variables inherited from scala.swing.Component - | |
- scala.swing.Component.initP - |
- Values and Variables inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.listeners - |
- Values and Variables inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.reactions - |
- Methods inherited from scala.swing.GridBagPanel - | |
- scala.swing.GridBagPanel.pair2Constraints, scala.swing.GridBagPanel.constraintsFor, scala.swing.GridBagPanel.areValid, scala.swing.GridBagPanel.add - |
- Methods inherited from scala.swing.LayoutContainer - | |
- scala.swing.LayoutContainer.layout - |
- Methods inherited from scala.swing.Container.Wrapper - | |
- scala.swing.Container.Wrapper.contents - |
- Methods inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish - |
- Methods inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo - |
- Methods inherited from scala.Proxy - | |
- scala.Proxy.hashCode, scala.Proxy.equals - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- c : scala.swing.GridBagPanel.Constraints
-
- val
- menuPanel : MenuPanel
-
- val
- worldPanel : WorldPanel
-
- val
- controlPanel : ControlPanel
-
- val
- infoPanel : InfoPanel
-
-
-
- val
- optionsPanel : OptionsPanel
-
- val
- shapeInfoPanel : ShapeInfoPanel
- 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)
).
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- val
- gravityPanel : GravityPanel
-
- val
- splitter : scala.swing.SplitPane
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/gui/MenuHelp.scala
]
-
- class
- MenuHelp
- extends
scala.swing.MenuValue Summary | |
- val
- |
-
- components
- : scala.List[scala.swing.MenuItem]
-
+
+
+
+
+ MenuHelp++ class + + MenuHelp extends Menu + ++
+
+
+
+
+
+
+
+
+
+
+
-
+
+ Inherits+
|
-
- val
- |
- - miAbout - : scala.swing.MenuItem - | -
- Values and Variables inherited from scala.swing.Menu - | |
- scala.swing.Menu.peer - |
- Values and Variables inherited from scala.swing.SequentialContainer.Wrapper - | |
- scala.swing.SequentialContainer.Wrapper.contents - |
- Values and Variables inherited from scala.swing.Container.Wrapper - | |
- scala.swing.Container.Wrapper._contents - |
- Values and Variables inherited from scala.swing.Component - | |
- scala.swing.Component.initP - |
- Values and Variables inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.listeners - |
- Values and Variables inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.reactions - |
- Methods inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish - |
- Methods inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo - |
- Methods inherited from scala.Proxy - | |
- scala.Proxy.hashCode, scala.Proxy.equals - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
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)
).
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- val
- miAbout : scala.swing.MenuItem
-
-
-
- val
- components : scala.List[scala.swing.MenuItem]
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/gui/MenuPanel.scala
]
-
- class
- MenuPanel(container : Container)
- extends
scala.swing.BoxPanelValue Summary | |
- val
- |
-
- mnu
- : scala.swing.MenuBar
+ + class + + MenuPanel extends BoxPanel + ++
+
+
+
+
+
+
+
+
+
+
+
-
+
+ Inherits+
|
-
- Values and Variables inherited from scala.swing.BoxPanel - | |
- scala.swing.BoxPanel.peer - |
- Values and Variables inherited from scala.swing.SequentialContainer.Wrapper - | |
- scala.swing.SequentialContainer.Wrapper.contents - |
- Values and Variables inherited from scala.swing.Container.Wrapper - | |
- scala.swing.Container.Wrapper._contents - |
- Values and Variables inherited from scala.swing.Component - | |
- scala.swing.Component.initP - |
- Values and Variables inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.listeners - |
- Values and Variables inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.reactions - |
- Methods inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish - |
- Methods inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo - |
- Methods inherited from scala.Proxy - | |
- scala.Proxy.hashCode, scala.Proxy.equals - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
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)
).
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- val
- mnu : scala.swing.MenuBar
-
-
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/gui/OptionsPanel.scala
]
-
- class
- OptionsPanel(container : Container)
- extends
scala.swing.GridPanelValue Summary | |
- val
- |
- - chckCD - : scala.swing.CheckBox - - - | -
- val
- |
- - chckDrawAABBs - : scala.swing.CheckBox - - - | -
- val
- |
- - chckDrawBodies - : scala.swing.CheckBox - - - | -
- val
- |
- - chckDrawCollisions - : scala.swing.CheckBox - - - | -
- val
- |
- - chckDrawJoints - : scala.swing.CheckBox - - - | -
- val
- |
- - chckDrawPairs - : scala.swing.CheckBox - - - | -
- val
- |
- - chckDrawShapes - : scala.swing.CheckBox - - - | -
- val
- |
- - chckPC - : scala.swing.CheckBox - - - | -
- val
- |
- - chckTrace - : scala.swing.CheckBox - - - | -
- val
- |
- - components - : scala.List[scala.swing.Component] - - - | -
- val
- |
- - lblCD - : scala.swing.Label - - - | -
- val
- |
- - lblDraw - : scala.swing.Label - - - | -
- val
- |
- - lblDrawAABBs - : scala.swing.Label - - - | -
- val
- |
- - lblDrawBodies - : scala.swing.Label - - - | -
- val
- |
- - lblDrawCollisions - : scala.swing.Label - - - | -
- val
- |
- - lblDrawJoints - : scala.swing.Label - - - | -
- val
- |
- - lblDrawPairs - : scala.swing.Label - - - | -
- val
- |
- - lblDrawShapes - : scala.swing.Label - - - | -
- val
- |
- - lblIterations - : scala.swing.Label - - - | -
- val
- |
- - lblPC - : scala.swing.Label - - - | -
- val
- |
- - lblTimeStep - : scala.swing.Label - - - | -
- val
- |
- - lblTrace - : scala.swing.Label - - - | -
- val
- |
- - txtIterations - : scala.swing.TextField - - - | -
- val
- |
- - txtTimeStep - : scala.swing.TextField - - - | -
- Values and Variables inherited from scala.swing.GridPanel - | |
- scala.swing.GridPanel.peer - |
- Values and Variables inherited from scala.swing.SequentialContainer.Wrapper - | |
- scala.swing.SequentialContainer.Wrapper.contents - |
- Values and Variables inherited from scala.swing.Container.Wrapper - | |
- scala.swing.Container.Wrapper._contents - |
- Values and Variables inherited from scala.swing.Component - | |
- scala.swing.Component.initP - |
- Values and Variables inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.listeners - |
- Values and Variables inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.reactions - |
Method Summary | |
- def
- |
- - update - : Unit - - - | -
- Methods inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish - |
- Methods inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo - |
- Methods inherited from scala.Proxy - | |
- scala.Proxy.hashCode, scala.Proxy.equals - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- lblTimeStep : scala.swing.Label
-
- val
- txtTimeStep : scala.swing.TextField
-
- val
- lblIterations : scala.swing.Label
-
- val
- txtIterations : scala.swing.TextField
-
- val
- lblCD : scala.swing.Label
-
- val
- chckCD : scala.swing.CheckBox
-
- val
- lblPC : scala.swing.Label
-
- val
- chckPC : scala.swing.CheckBox
-
- val
- lblDraw : scala.swing.Label
-
- val
- lblDrawBodies : scala.swing.Label
-
- val
- chckDrawBodies : scala.swing.CheckBox
-
- val
- lblDrawShapes : scala.swing.Label
-
- val
- chckDrawShapes : scala.swing.CheckBox
-
- val
- lblDrawJoints : scala.swing.Label
-
- val
- chckDrawJoints : scala.swing.CheckBox
-
- val
- lblDrawAABBs : scala.swing.Label
-
- val
- chckDrawAABBs : scala.swing.CheckBox
-
- val
- lblDrawPairs : scala.swing.Label
-
- val
- chckDrawPairs : scala.swing.CheckBox
-
- val
- lblDrawCollisions : scala.swing.Label
-
- val
- chckDrawCollisions : scala.swing.CheckBox
-
- val
- lblTrace : scala.swing.Label
-
- val
- chckTrace : scala.swing.CheckBox
-
- val
- components : scala.List[scala.swing.Component]
- Method Details |
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)
).
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- def
- update : Unit
-
-
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/gui/PopupMenu.scala
]
-
- class
- PopupMenu
- extends
scala.swing.ComponentValue Summary | |
- override lazy val
- |
- - peer - : javax.swing.JPopupMenu - - - | -
- Values and Variables inherited from scala.swing.Component - | |
- scala.swing.Component.initP - |
- Values and Variables inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.listeners - |
- Values and Variables inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.reactions - |
Method Summary | |
- def
- |
-
- add
- (item : scala.swing.MenuItem) : Unit
-
+
+
+
+
+ PopupMenu++ class + + PopupMenu extends Component + ++
+
+
+
+
+
+
+
+ known subclasses: BodyPopup
+
+
+
+
+
-
+
+ Inherits+
|
-
- def
- |
- - setVisible - (visible : Boolean) : Unit - | -
- Methods inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish - |
- Methods inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo - |
- Methods inherited from scala.Proxy - | |
- scala.Proxy.hashCode, scala.Proxy.equals - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
override
- lazy val
- peer : javax.swing.JPopupMenu
- Method Details |
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)
).
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- def
- add(item : scala.swing.MenuItem) : Unit
-
-
-
- def
- setVisible(visible : Boolean) : Unit
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/gui/ShapeInfoPanel.scala
]
-
- class
- ShapeInfoPanel(container : Container)
- extends
scala.swing.GridPanelValue Summary | |
- val
- |
- - components - : scala.List[scala.swing.Label] - - - | -
- val
- |
- - lblBody - : scala.swing.Label - - - | -
- val
- |
- - lblShape - : scala.swing.Label - - - | -
- val
- |
- - lblValBody - : scala.swing.Label - - - | -
- val
- |
- - lblValShape - : scala.swing.Label - - - | -
- Values and Variables inherited from scala.swing.GridPanel - | |
- scala.swing.GridPanel.peer - |
- Values and Variables inherited from scala.swing.SequentialContainer.Wrapper - | |
- scala.swing.SequentialContainer.Wrapper.contents - |
- Values and Variables inherited from scala.swing.Container.Wrapper - | |
- scala.swing.Container.Wrapper._contents - |
- Values and Variables inherited from scala.swing.Component - | |
- scala.swing.Component.initP - |
- Values and Variables inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.listeners - |
- Values and Variables inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.reactions - |
- Methods inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish - |
- Methods inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo - |
- Methods inherited from scala.Proxy - | |
- scala.Proxy.hashCode, scala.Proxy.equals - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- lblBody : scala.swing.Label
-
-
-
- val
- lblValBody : scala.swing.Label
-
- val
- lblShape : scala.swing.Label
- 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)
).
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- val
- lblValShape : scala.swing.Label
-
- val
- components : scala.List[scala.swing.Label]
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/gui/WorldPanel.scala
]
-
- class
- WorldPanel(container : Container)
- extends
scala.swing.BoxPanelValue Summary | |
- var
- |
- - drawAABBs - : Boolean - - - | -
- var
- |
- - drawBodies - : Boolean - - - | -
- var
- |
- - drawCollisions - : Boolean - - - | -
- var
- |
- - drawJoints - : Boolean - - - | -
- var
- |
- - drawPairs - : Boolean - - - | -
- var
- |
- - drawShapes - : Boolean - - - | -
- var
- |
- - endPoint - : java.awt.Point - - - | -
- var
- |
- - grabbedBody - : scala.Option[GrabbedBody] - - - | -
- val
- |
- - lblBody - : scala.swing.Label - - - | -
- var
- |
- - mousePressed - : Boolean - - - | -
- var
- |
- - offset - : Vector2D - - - | -
- val
- |
- - popup - : BodyPopup - - - | -
- val
- |
- - ppm - : Double - - - | -
- val
- |
- - prevPos - : scala.collection.mutable.Map[Int, scala.collection.mutable.Queue[Vector2D]] - - - | -
- var
- |
- - scale - : Double - - - | -
- var
- |
- - startPoint - : java.awt.Point - - - | -
- var
- |
- - trace - : Boolean - - - | -
- Values and Variables inherited from scala.swing.BoxPanel - | |
- scala.swing.BoxPanel.peer - |
- Values and Variables inherited from scala.swing.SequentialContainer.Wrapper - | |
- scala.swing.SequentialContainer.Wrapper.contents - |
- Values and Variables inherited from scala.swing.Container.Wrapper - | |
- scala.swing.Container.Wrapper._contents - |
- Values and Variables inherited from scala.swing.Component - | |
- scala.swing.Component.initP - |
- Values and Variables inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.listeners - |
- Values and Variables inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.reactions - |
Method Summary | |
- def
- |
- - drawAxes - (g : java.awt.Graphics) : Unit - - - | -
- def
- |
- - drawParts - (parts : scala.Iterable[Drawable], g : java.awt.Graphics) : Unit - - - | -
- def
- |
- - getBody - (p : Vector2D) : scala.Option[Body] - - - | -
- def
- |
- - grab - (b : Body, p : Vector2D) : Unit - - - | -
- override def
- |
- - paintComponent - (g : java.awt.Graphics) : Unit - - - | -
- implicit def
- |
- - point2Vector - (p : java.awt.Point) : Vector2D - - - | -
- def
- |
- - release - : Unit - - - | -
- def
- |
- - scene - : Scene - - - | -
- def
- |
- - trace - (shapes : scala.Iterable[GraphicalShape], g : java.awt.Graphics) : Unit - - - | -
- def
- |
- - update - : Unit - - - | -
- Methods inherited from scala.swing.Publisher - | |
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish - |
- Methods inherited from scala.swing.Reactor - | |
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo - |
- Methods inherited from scala.Proxy - | |
- scala.Proxy.hashCode, scala.Proxy.equals - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- lblBody : scala.swing.Label
-
- val
- popup : BodyPopup
-
- val
- ppm : Double
-
- var
- scale : Double
-
- var
- offset : Vector2D
-
- var
- drawBodies : Boolean
-
- var
- drawShapes : Boolean
-
- var
- drawJoints : Boolean
-
- var
- drawAABBs : Boolean
-
- var
- drawPairs : Boolean
-
- var
- drawCollisions : Boolean
-
- var
- trace : Boolean
-
- val
- prevPos : scala.collection.mutable.Map[Int, scala.collection.mutable.Queue[Vector2D]]
-
- var
- mousePressed : Boolean
-
- var
- startPoint : java.awt.Point
-
- var
- endPoint : java.awt.Point
-
- var
- grabbedBody : scala.Option[GrabbedBody]
- Method Details |
implicit
- def
- point2Vector(p : java.awt.Point) : Vector2D
-
- def
- scene : Scene
-
- def
- update : Unit
- override
- def
- paintComponent(g : java.awt.Graphics) : Unit
-
- def
- drawAxes(g : java.awt.Graphics) : Unit
-
- def
- drawParts(parts : scala.Iterable[Drawable], g : java.awt.Graphics) : Unit
-
- def
- trace(shapes : scala.Iterable[GraphicalShape], g : java.awt.Graphics) : Unit
-
- def
- getBody(p : Vector2D) : scala.Option[Body]
- 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)
).
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- def
- release : Unit
-
-
- - - | -
- SiMS
- |
-
Class Summary | |
- trait
- |
-
- Test
- extends AnyRef
-
-
- |
-
Object Summary | |
- object
- |
-
- Atom
- extends Test
-
-
- |
-
- object
- |
-
- BallStack
- extends Test
-
-
- |
-
- object
- |
-
- Carriage
- extends Test
-
-
- |
-
- object
- |
-
- Chain
- extends Test
-
-
- |
-
- object
- |
-
- CompositeShape
- extends Test
-
-
- |
-
- object
- |
-
- Cup
- extends Test
-
-
- |
-
- object
- |
-
- EmptyTest
- extends Test
-
-
- |
-
- object
- |
-
- Friction
- extends Test
-
-
- |
-
- object
- |
-
- Friction2
- extends Test
-
-
- |
-
- object
- |
-
- General1
- extends Test
-
-
- |
-
- object
- |
-
- General2
- extends Test
-
-
- |
-
- object
- |
-
- Joints1
- extends Test
-
-
- |
-
- object
- |
-
- Joints2
- extends Test
-
-
- |
-
- object
- |
-
- Net
- extends Test
-
-
- |
-
- object
- |
-
- RagdollTest
- extends Test
-
-
- |
-
- object
- |
-
- Restitution
- extends Test
-
-
- |
-
- object
- |
-
- Spring
- extends Test
-
-
- |
-
- object
- |
-
- Stacking
- extends Test
-
-
- |
-
- object
- |
-
- Wave
- extends Test
-
-
- |
-
- graphyx.tests - |
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/Atom.scala
]
-
- object
- Atom
- extends
TestValue Summary | |
- var
- |
- - connections - : scala.List[SpringJoint] - - - | -
- var
- |
- - electrons - : scala.List[Body] - - - | -
- var
- |
- - nucleus - : Body - - - | -
- val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- override def
- |
- - fireEvent - : Unit - - - | -
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- title : java.lang.String
-
- val
- world : World
-
- var
- nucleus : Body
-
- var
- electrons : scala.List[Body]
-
- var
- connections : scala.List[SpringJoint]
- Method Details |
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/BallStack.scala
]
-
- object
- BallStack
- extends
TestValue Summary | |
- val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- fireEvent, toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/Carriage.scala
]
-
- class
- Car
- extends
PrefabValue Summary | |
- override val
- |
- - bodies - : scala.List[Body] - - - | -
- val
- |
- - chassis - : Body - - - | -
- override val
- |
-
- joints
- : scala.List[Joint with scala.Product]
-
-
- |
-
- val
- |
- - leftDamper - : SpringJoint - - - | -
- val
- |
- - leftStabelizer - : DistanceJoint - - - | -
- val
- |
- - leftWheel - : Body - - - | -
- val
- |
- - rightDamper - : SpringJoint - - - | -
- val
- |
- - rightStabelizer - : DistanceJoint - - - | -
- val
- |
- - rightWheel - : Body - - - | -
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- chassis : Body
-
- val
- rightWheel : Body
-
- val
- leftWheel : Body
- override
- val
- bodies : scala.List[Body]
-
- val
- rightStabelizer : DistanceJoint
-
- val
- rightDamper : SpringJoint
-
- val
- leftStabelizer : DistanceJoint
-
- val
- leftDamper : SpringJoint
- override
- val
- joints : scala.List[Joint with
scala.Product]
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/tests/Carriage.scala
]
-
- object
- Carriage
- extends
TestValue Summary | |
- val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- fireEvent, toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Class Summary | |
- class
- |
-
- Car
- extends Prefab
-
-
- |
-
Value Details |
Method Details |
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/Chain.scala
]
-
- object
- Chain
- extends
TestValue Summary | |
- override val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- fireEvent, toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/CompositeShape.scala
]
-
- object
- CompositeShape
- extends
TestValue Summary | |
- val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- fireEvent, toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/Cup.scala
]
-
- object
- Cup
- extends
TestValue Summary | |
- val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- fireEvent, toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/EmptyTest.scala
]
-
- object
- EmptyTest
- extends
TestValue Summary | |
- override val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- fireEvent, toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/Friction.scala
]
-
- object
- Friction
- extends
TestValue Summary | |
- var
- |
- - r1 - : RevoluteJoint - - - | -
- var
- |
- - r2 - : RevoluteJoint - - - | -
- var
- |
- - r3 - : RevoluteJoint - - - | -
- val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- override def
- |
- - fireEvent - : Unit - - - | -
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- title : java.lang.String
-
- val
- world : World
-
- var
- r1 : RevoluteJoint
-
- var
- r2 : RevoluteJoint
-
- var
- r3 : RevoluteJoint
- Method Details |
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/Friction2.scala
]
-
- object
- Friction2
- extends
TestValue Summary | |
- val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- fireEvent, toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/General1.scala
]
-
- object
- General1
- extends
TestValue Summary | |
- override val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - blastBomb - : Unit - - - | -
- override def
- |
- - fireEvent - : Unit - - - | -
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- def
- init : Unit
- override
- def
- fireEvent : Unit
-
- def
- blastBomb : Unit
- - - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/General2.scala
]
-
- object
- General2
- extends
TestValue Summary | |
- val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- fireEvent, toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/Joints1.scala
]
-
- object
- Joints1
- extends
TestValue Summary | |
- override val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- fireEvent, toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/Joints2.scala
]
-
- object
- Joints2
- extends
TestValue Summary | |
- override val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- fireEvent, toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/Net.scala
]
-
- object
- Net
- extends
TestValue Summary | |
- val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- fireEvent, toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/RagdollTest.scala
]
-
- object
- RagdollTest
- extends
TestValue Summary | |
- val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- fireEvent, toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/Restitution.scala
]
-
- object
- Restitution
- extends
TestValue Summary | |
- val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- fireEvent, toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/Spring.scala
]
-
- object
- Spring
- extends
TestValue Summary | |
- val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- fireEvent, toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/Stacking.scala
]
-
- object
- Stacking
- extends
TestValue Summary | |
- val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- fireEvent, toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
graphyx/tests/Test.scala
]
-
- trait
- Test
- extends
AnyRefValue Summary | |
- abstract val
- |
- - title - : java.lang.String - - - | -
- abstract val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - fireEvent - : Unit - - - | -
- abstract def
- |
- - init - : Unit - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
abstract
- def
- init : Unit
-
-
-
- def
- fireEvent : Unit
- override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
- - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
graphyx/tests/Wave.scala
]
-
- object
- Wave
- extends
TestValue Summary | |
- val
- |
- - title - : java.lang.String - - - | -
- val
- |
- - world - : World - - - | -
Method Summary | |
- def
- |
- - init - : Unit - - - | -
- Methods inherited from Test - | |
- fireEvent, toString - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
Method Details |
- - | -
- SiMS
- |
-
Package Summary | |
- package
- graphyx
-
- | |
- package
- graphyx.actors
-
- | |
- package
- graphyx.graphics
-
- | |
- package
- graphyx.gui
-
- | |
- package
- graphyx.tests
-
- | |
- package
- sims.collision
-
- | |
- package
- sims.dynamics
-
- | |
- package
- sims.dynamics.joints
-
- | |
- package
- sims.dynamics.joints.test
-
- | |
- package
- sims.geometry
-
- | |
- package
- sims.math
-
- | |
- package
- sims.prefabs
-
- | |
- package
- sims.util
-
- |
Class Summary | |
- case class
- |
-
- AABB
- (val minVertex : Vector2D, val maxVertex : Vector2D) extends scala.Product
-
- Axis Aligned Bounding Boxes (AABBs) are rectangles that frame a shape.
- Their X-Axis and Y-Axis orientation makes it easy to test two AABBs for overlap.
- |
-
- case class
- |
-
- CircleCollision
- (val c1 : Circle, val c2 : Circle) extends Collision with scala.Product
-
- Collision between two circles.
- |
-
- abstract class
- |
-
- Collision
- extends Constraint with AnyRef
-
- Collision between two shapes. Contains methods to compute the collision response.
- |
-
- abstract class
- |
-
- Detector
- extends AnyRef
-
- A world detects its collisions through concrete implementations of this class.
- |
-
- class
- |
-
- GridDetector
- (val override world : World) extends Detector
-
- A conrete implementation of
- Detector . GridDetector divides the world into a grid
- for faster collision detection. |
-
- case class
- |
-
- Overlap
- (val poly : ConvexPolygon, val sideNum : Int, val overlap : Double) extends scala.Product
-
-
- |
-
- case class
- |
-
- Pair
- (val s1 : Shape, val s2 : Shape) extends (Shape, Shape)
-
- Pair of shapes.
- |
-
- case class
- |
-
- PolyCircleCollision
- (val p : ConvexPolygon, val c : Circle) extends Collision with scala.Product
-
- Collision between a convex polygon and a circle.
- |
-
- case class
- |
-
- PolyCollision
- (val p1 : ConvexPolygon, val p2 : ConvexPolygon) extends Collision with scala.Product
-
- Collision between two convex polygons.
- |
-
Object Summary | |
- object
- |
-
- AABB
- extends (Vector2D, Vector2D) => AABB
-
-
- |
-
- object
- |
-
- CircleCollision
- extends (Circle, Circle) => CircleCollision
-
-
- |
-
- object
- |
-
- Collision
- extends AnyRef
-
-
- |
-
- object
- |
-
- Overlap
- extends (ConvexPolygon, Int, Double) => Overlap
-
-
- |
-
- object
- |
-
- Pair
- extends (Shape, Shape) => Pair
-
-
- |
-
- object
- |
-
- PolyCircleCollision
- extends (ConvexPolygon, Circle) => PolyCircleCollision
-
-
- |
-
- object
- |
-
- PolyCollision
- extends (ConvexPolygon, ConvexPolygon) => PolyCollision
-
-
- |
-
- sims.collision - |
- - | -
- SiMS
- |
-
sims/collision/AABB.scala
]
-
- object
- AABB
- extends
(Vector2D, Vector2D) => AABB- Methods inherited from scala.Function2 - | |
- scala.Function2.toString, scala.Function2.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/collision/AABB.scala
]
- case
- class
- AABB(val
minVertex : Vector2D, val
maxVertex : Vector2D)
- extends
scala.ProductminVertex -
Position vector of the bottom-left vertexmaxVertex -
Position vector of the upper-right vertexMethod Summary | |
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- def
- |
-
- overlaps
- (box : AABB) : Boolean
-
- Checks this AABB with
- box for overlap. |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Axis Aligned Bounding Boxes (AABBs) are rectangles that frame a shape. +Their X-Axis and Y-Axis orientation makes it easy to test two AABBs for overlap.
Position vector of the bottom-left vertex
Position vector of the upper-right vertex
Method Details |
box
for overlap.box -
AABB with which to check for overlapoverride
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- 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.
+
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.
+
Checks this AABB with box
for overlap
Checks this AABB with box
for overlap.
AABB with which to check for overlap
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- def
- productElement(arg0 : Int) : Any
-
-
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/collision/CircleCollision.scala
]
-
- object
- CircleCollision
- extends
(Circle, Circle) => CircleCollision- Methods inherited from scala.Function2 - | |
- scala.Function2.toString, scala.Function2.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/collision/CircleCollision.scala
]
- case
- class
- CircleCollision(val
c1 : Circle, val
c2 : Circle)
- extends
Collision with
scala.ProductValue Summary | |
- val
- |
-
- normal
- : Vector2D
-
- Normal vector to the collision face.
- |
-
- val
- |
-
- points
- : scala.List[Vector2D]
-
- Collision points.
- |
-
- val
- |
-
- shape1
- : Circle
-
- First colliding shape (reference shape).
- |
-
- val
- |
-
- shape2
- : Circle
-
- Second colliding shape (incident shape).
- |
-
Method Summary | |
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from Collision - | |
- correctVelocity, correctFriction, correctPosition - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Collision between two circles.
Value Details |
- val
- shape1 : Circle
-
- val
- shape2 : Circle
-
- val
- normal : Vector2D
-
- val
- points : scala.List[Vector2D]
- Method Details |
override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
-
-
-
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- Corrects the positions of bodies according to this constraint
Corrects the positions of bodies according to this constraint.
a time interval, used for converting forces and impulses
Corrects the velocities of bodies according to this constraint
Corrects the velocities of bodies according to this constraint.
a time interval, used for converting forces and impulses
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.
+
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.
+
Normal vector to the collision face
Normal vector to the collision face.
Collision points
Collision points.
First colliding shape (reference shape)
First colliding shape (reference shape).
Second colliding shape (incident shape)
Second colliding shape (incident shape).
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- def
- productArity : Int
- - - | -
- SiMS
- |
-
Tolerated overlap
Tolerated overlap. Collision response will only be applied if the overlap of two shapes exceeds the tolerated overlap.
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
sims/collision/Collision.scala
]
-
- object
- Collision
- extends
AnyRefValue Summary | |
- val
- |
-
- ToleratedOverlap
- : Double
-
- Tolerated overlap. Collision response will only be applied if the overlap of two shapes exceeds the tolerated overlap.
- |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- ToleratedOverlap : Double
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/collision/Collision.scala
]
- abstract
- class
- Collision
- extends
Constraint with
AnyRefValue Summary | |
- abstract val
- |
-
- normal
- : Vector2D
-
- Normal vector to the collision face.
- |
-
- abstract val
- |
-
- points
- : scala.Iterable[Vector2D]
-
- Collision points.
- |
-
- abstract val
- |
-
- shape1
- : Shape
-
- First colliding shape (reference shape).
- |
-
- abstract val
- |
-
- shape2
- : Shape
-
- Second colliding shape (incident shape).
- |
-
Method Summary | |
- def
- |
- - correctFriction - (point : Vector2D, normalForce : Double, h : Double) : Unit - - - | -
- def
- |
-
- correctPosition
- (h : Double) : Unit
-
- Corrects the positions of bodies according to this constraint.
- |
-
- def
- |
-
- correctVelocity
- (h : Double) : Unit
-
- Corrects the velocities of bodies according to this constraint.
- |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Collision between two shapes. Contains methods to compute the collision response.
Value Details |
abstract
- val
- shape1 : Shape
- abstract
- val
- shape2 : Shape
- abstract
- val
- points : scala.Iterable[Vector2D]
-
-
-
- abstract
- val
- normal : Vector2D
- Method Details |
h -
a time interval, used for converting forces and impulsesCorrects the positions of bodies according to this constraint
Corrects the positions of bodies according to this constraint.
a time interval, used for converting forces and impulses
Corrects the velocities of bodies according to this constraint
Corrects the velocities of bodies according to this constraint.
a time interval, used for converting forces and impulses
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.
+
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.
+
Normal vector to the collision face
Normal vector to the collision face.
Collision points
Collision points.
First colliding shape (reference shape)
First colliding shape (reference shape).
Second colliding shape (incident shape)
Second colliding shape (incident shape).
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- def
- correctFriction(point : Vector2D, normalForce : Double, h : Double) : Unit
-
- def
- correctPosition(h : Double) : Unit
- h -
a time interval, used for converting forces and impulses- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/collision/Detector.scala
]
- abstract
- class
- Detector
- extends
AnyRefValue Summary | |
- abstract val
- |
-
- world
- : World
+
+
+
+
+ Detector++ class + + Detector extends AnyRef + ++
+
+
+ A world detects its collisions through concrete implementations of this class.
+ attributes: abstract
+
+
+
+ known subclasses: GridDetector
+
+
+
+
+
-
+
+ Inherits+
The world whose shapes are to be checked for collisions.
- |
-
Method Summary | |
- abstract def
- |
-
- collisions
- : scala.Seq[Collision]
- Returns all collisions between shapes in the world
- world . |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Returns all collisions between shapes in the world world
Returns all collisions between shapes in the world world
.
Value Details |
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
The world whose shapes are to be checked for collisions
The world whose shapes are to be checked for collisions.
abstract
- val
- world : World
-
-
-
- Method Details |
abstract
- def
- collisions : scala.Seq[Collision]
- world
.- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/collision/GridDetector.scala
]
-
- class
- GridDetector(val override
world : World)
- extends
DetectorDetector
. GridDetector
divides the world into a grid
- for faster collision detection.Value Summary | |
- val
- |
-
- collisionMethods
- : scala.collection.mutable.ArrayBuffer[scala.PartialFunction[(Shape, Shape), Collision]]
-
- Array of methods returning collisions. It is assumed that both shapes are colliding.
- |
-
- val
- |
-
- detectionMethods
- : scala.collection.mutable.ArrayBuffer[scala.PartialFunction[(Shape, Shape), Boolean]]
-
- Array of collision detection methods. These methods return
- true if two shapes are colliding. |
-
- var
- |
-
- gridSide
- : Double
-
- Width and height of a grid cell.
- |
-
Method Summary | |
- def
- |
-
- colliding
- (p : Pair) : Boolean
-
- Checks the pair of shapes
- p for collision. |
-
- def
- |
-
- collidingPairs
- : scala.Seq[Pair]
-
- Returns all colliding pairs.
- |
-
- def
- |
-
- collision
- (p : Pair) : Collision
-
- Returns the collision between both shapes of the pair
- p . |
-
- def
- |
-
- collisions
- : scala.Seq[Collision]
-
- Returns all collisions.
- |
-
- def
- |
-
- getPairs
- : scala.Seq[Pair]
-
- Returns potential colliding pairs of shapes of the world
- world . |
-
- def
- |
-
- pairs
- : scala.Seq[Pair]
-
- All potential colliding pairs of the world.
- |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
A conrete implementation of Detector
. GridDetector
divides the world into a grid
+for faster collision detection.
Value Details |
- val
- detectionMethods : scala.collection.mutable.ArrayBuffer[scala.PartialFunction[(Shape, Shape), Boolean]]
- true
if two shapes are colliding.
- val
- collisionMethods : scala.collection.mutable.ArrayBuffer[scala.PartialFunction[(Shape, Shape), Collision]]
-
- var
- gridSide : Double
- Method Details |
- def
- collision(p : Pair) : Collision
-
-
-
- p
.p -
Pair of shapes.world
.
- - A potential colliding pair is a pair of two shapes that comply with the following criteria: -
Checks the pair of shapes p
for collision
Checks the pair of shapes p
for collision.
Pair of shapes.
Returns all colliding pairs
Returns all colliding pairs.
Returns the collision between both shapes of the pair p
Returns the collision between both shapes of the pair p
.
Pair of shapes.
Array of methods returning collisions
Array of methods returning collisions. It is assumed that both shapes are colliding.
Returns all collisions
Returns all collisions.
Array of collision detection methods
Array of collision detection methods. These methods return true
if two shapes are colliding.
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.
+
Returns potential colliding pairs of shapes of the world world
Returns potential colliding pairs of shapes of the world world
.
+
+A potential colliding pair is a pair of two shapes that comply with the following criteria: +
Width and height of a grid cell
Width and height of a grid cell.
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.
+
All potential colliding pairs of the world
All potential colliding pairs of the world.
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
The world whose shapes are to be checked for collisions
The world whose shapes are to be checked for collisions.
- def
- collidingPairs : scala.Seq[Pair]
-
- def
- collisions : scala.Seq[Collision]
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/collision/Overlap.scala
]
-
- object
- Overlap
- extends
(ConvexPolygon, Int, Double) => Overlap- Methods inherited from scala.Function3 - | |
- scala.Function3.toString, scala.Function3.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/collision/Overlap.scala
]
- case
- class
- Overlap(val
poly : ConvexPolygon, val
sideNum : Int, val
overlap : Double)
- extends
scala.ProductMethod Summary | |
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Method Details |
override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- 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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- def
- productElement(arg0 : Int) : Any
-
-
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/collision/Pair.scala
]
-
- object
- Pair
- extends
(Shape, Shape) => Pair- Methods inherited from scala.Function2 - | |
- scala.Function2.toString, scala.Function2.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/collision/Pair.scala
]
- case
- class
- Pair(val
s1 : Shape, val
s2 : Shape)
- extends
(Shape, Shape)Additional Constructor Summary | |
- def
- |
- - this - (t : (Shape, Shape)) : Pair - - - | -
- Values and Variables inherited from scala.Tuple2 - | |
- scala.Tuple2._1, scala.Tuple2._2 - |
Method Summary | |
- override def
- |
-
- equals
- (other : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- Methods inherited from scala.Tuple2 - | |
- scala.Tuple2.toString, scala.Tuple2.swap - |
- Methods inherited from scala.Product2 - | |
- scala.Product2.productArity, scala.Product2.productElement - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Additional Constructor Details |
Pair of shapes.
- def
- this(t : (Shape, Shape)) : Pair
-
-
- Method Details |
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- hashCode : Int
-
- 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.
-
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)
).
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- def
- productPrefix : java.lang.String
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/collision/PolyCircleCollision.scala
]
-
- object
- PolyCircleCollision
- extends
(ConvexPolygon, Circle) => PolyCircleCollision- Methods inherited from scala.Function2 - | |
- scala.Function2.toString, scala.Function2.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/collision/PolyCircleCollision.scala
]
- case
- class
- PolyCircleCollision(val
p : ConvexPolygon, val
c : Circle)
- extends
Collision with
scala.ProductValue Summary | |
- val
- |
-
- normal
- : Vector2D
-
- Normal vector to the collision face.
- |
-
- val
- |
-
- points
- : scala.List[Vector2D]
-
- Collision points.
- |
-
- val
- |
-
- shape1
- : Shape
-
- First colliding shape (reference shape).
- |
-
- val
- |
-
- shape2
- : Circle
-
- Second colliding shape (incident shape).
- |
-
Method Summary | |
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from Collision - | |
- correctVelocity, correctFriction, correctPosition - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Collision between a convex polygon and a circle.
Value Details |
- val
- shape1 : Shape
-
- val
- shape2 : Circle
-
- val
- normal : Vector2D
-
- val
- points : scala.List[Vector2D]
- Method Details |
override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
-
-
-
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- Corrects the positions of bodies according to this constraint
Corrects the positions of bodies according to this constraint.
a time interval, used for converting forces and impulses
Corrects the velocities of bodies according to this constraint
Corrects the velocities of bodies according to this constraint.
a time interval, used for converting forces and impulses
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.
+
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.
+
Normal vector to the collision face
Normal vector to the collision face.
Collision points
Collision points.
First colliding shape (reference shape)
First colliding shape (reference shape).
Second colliding shape (incident shape)
Second colliding shape (incident shape).
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- def
- productArity : Int
- override
- def
- productElement(arg0 : Int) : Any
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/collision/PolyCollision.scala
]
-
- object
- PolyCollision
- extends
(ConvexPolygon, ConvexPolygon) => PolyCollision- Methods inherited from scala.Function2 - | |
- scala.Function2.toString, scala.Function2.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/collision/PolyCollision.scala
]
- case
- class
- PolyCollision(val
p1 : ConvexPolygon, val
p2 : ConvexPolygon)
- extends
Collision with
scala.ProductValue Summary | |
- var
- |
- - minOverlap - : Overlap - - - | -
- lazy val
- |
-
- normal
- : Vector2D
-
- Normal vector to the collision face.
- |
-
- lazy val
- |
- - overlaps - : scala.RandomAccessSeq[Overlap] - - - | -
- lazy val
- |
-
- points
- : scala.Seq[Vector2D]
-
- Collision points.
- |
-
- lazy val
- |
-
- shape1
- : Shape
-
- First colliding shape (reference shape).
- |
-
- lazy val
- |
-
- shape2
- : Shape
-
- Second colliding shape (incident shape).
- |
-
Method Summary | |
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- def
- |
- - overlap - (axis : Vector2D) : Double - - - | -
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from Collision - | |
- correctVelocity, correctFriction, correctPosition - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Collision between two convex polygons.
Value Details |
- lazy val
- overlaps : scala.RandomAccessSeq[Overlap]
-
- var
- minOverlap : Overlap
-
- lazy val
- shape1 : Shape
-
- lazy val
- shape2 : Shape
-
- lazy val
- normal : Vector2D
- Method Details |
override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- Corrects the positions of bodies according to this constraint
Corrects the positions of bodies according to this constraint.
a time interval, used for converting forces and impulses
Corrects the velocities of bodies according to this constraint
Corrects the velocities of bodies according to this constraint.
a time interval, used for converting forces and impulses
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.
+
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.
+
Normal vector to the collision face
Normal vector to the collision face.
Collision points
Collision points.
First colliding shape (reference shape)
First colliding shape (reference shape).
Second colliding shape (incident shape)
Second colliding shape (incident shape).
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- def
- productElement(arg0 : Int) : Any
-
-
- - - | -
- SiMS
- |
-
Axis Aligned Bounding Boxes (AABBs) are rectangles that frame a shape
+Collision between two circles
+Collision between two shapes
+A world detects its collisions through concrete implementations of this class
+A conrete implementation of Detector
Pair of shapes
+Collision between a convex polygon and a circle
+Collision between two convex polygons
+Class Summary | |
- class
- |
-
- Body
- (shps : Shape*) extends AnyRef
-
- A two dimensional rigid body is made out of shapes.
- |
-
- case class
- |
-
- Circle
- (val radius : Double, val density : Double) extends Shape with scala.Product
-
- A circle.
- |
-
- trait
- |
-
- Constraint
- extends AnyRef
-
- All constraints in SiMS implement this trait.
- Position and velocity can be corrected for each constraint.
- The implementation of constraints was inspired by Erin Catto's box2d.
- |
-
- case class
- |
-
- Rectangle
- (val halfWidth : Double, val halfHeight : Double, val density : Double) extends Shape with ConvexPolygon with scala.Product
-
- A rectangle is a polygon.
- |
-
- case class
- |
-
- RegularPolygon
- (val n : Int, val radius : Double, val density : Double) extends Shape with ConvexPolygon with scala.Product
-
- A regular polygon with
- n sides whose excircle has a radius radius . |
-
- abstract class
- |
-
- Shape
- extends AnyRef
-
- An abstract shape.
- |
-
- class
- |
-
- World
- extends AnyRef
-
- A world contains and simulates a system of rigid bodies and joints.
- |
-
Object Summary | |
- object
- |
-
- Body
- extends AnyRef
-
-
- |
-
- object
- |
-
- Circle
- extends (Double, Double) => Circle
-
-
- |
-
- object
- |
-
- Rectangle
- extends (Double, Double, Double) => Rectangle
-
-
- |
-
- object
- |
-
- RegularPolygon
- extends (Int, Double, Double) => RegularPolygon
-
-
- |
-
- object
- |
-
- Shape
- extends AnyRef
-
-
- |
-
- sims.dynamics - |
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
sims/dynamics/Body.scala
]
-
- object
- Body
- extends
AnyRef- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/Body.scala
]
-
- class
- Body(shps : Shape*)
- extends
AnyRefshps -
shapes that belong to this body.Value Summary | |
- var
- |
-
- angularVelocity
- : Double
-
- Angular velocity of this body.
- |
-
- var
- |
-
- force
- : Vector2D
-
- Resulting force on the COM of this body.
- |
-
- var
- |
-
- linearVelocity
- : Vector2D
-
- Linear velocity of this body.
- |
-
- var
- |
-
- monitor
- : Boolean
-
- Flag for a world to monitor the properties of this body.
- |
-
- val
- |
-
- shapes
- : scala.List[Shape]
-
- Shapes that belong to this body.
- |
-
- var
- |
-
- torque
- : Double
-
- Resulting torque on this body.
- |
-
- val
- |
-
- uid
- : Int
-
- Unique identification number.
- |
-
Method Summary | |
- def
- |
-
- I
- : Double
-
- Returns the moment of inertia for rotations about the COM of this body.
- It is calculated using the moments of inertia of this body's shapes and the parallel axis theorem.
- If the body is fixed, its moment of inertia is infinite (
- Double.PositiveInfinity ). |
-
- def
- |
-
- applyForce
- (force : Vector2D, point : Vector2D) : Unit
-
- Applies a force to a point on this body. Warning: the point is considered to be contained within this body.
- |
-
- def
- |
-
- applyForce
- (force : Vector2D) : Unit
-
- Applies a force to the COM of this body.
- |
-
- def
- |
-
- applyImpulse
- (impulse : Vector2D) : Unit
-
- Applies an impulse to the COM of this body.
- |
-
- def
- |
-
- applyImpulse
- (impulse : Vector2D, point : Vector2D) : Unit
-
- Applies an impulse to a point on this body. Warning: the point is considered to be contained within this body.
- |
-
- def
- |
-
- contains
- (point : Vector2D) : Boolean
-
- Checks if the point
- point is contained in this body. |
-
- def
- |
-
- fixed
- : Boolean
-
- Returns whether this body is fixed or not.
- |
-
- def
- |
-
- fixed_=
- (value : Boolean) : Unit
-
- Fixes or frees this body. By fixing, linear and angular velocities are set to zero.
- |
-
- def
- |
-
- mass
- : Double
-
- Returns the mass of this body. If the body is free, its mass is the sum of the masses of its shapes.
- If the body is fixed, its mass is infinite (
- Double.PositiveInfinity ). |
-
- def
- |
-
- pos
- : Vector2D
-
- Returns the position of this body. The position is equivalent to the center of mass.
- |
-
- def
- |
-
- pos_=
- (newPos : Vector2D) : Unit
-
- Sets the position of this body. By doing so all its shapes are translated.
- |
-
- def
- |
-
- rotation
- : Double
-
- Returns the current rotation of this body.
- |
-
- def
- |
-
- rotation_=
- (newRotation : Double) : Unit
-
- Sets the rotation of this body. Position and rotation of shapes are modified accordingly.
- |
-
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- def
- |
-
- velocityOfPoint
- (point : Vector2D) : Vector2D
-
- Linear velocity of the given point on this body (in world coordinates).
- |
-
- def
- |
-
- ~
- (b : Body) : Body
-
- Creates a new body containing this body's shapes and the shapes of another body
- b . |
-
- def
- |
-
- ~
- (s : Shape) : Body
-
- Creates a new body containing this body's shapes and the shape
- s . |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
A two dimensional rigid body is made out of shapes.
Value Details |
- val
- uid : Int
-
- val
- shapes : scala.List[Shape]
-
- var
- monitor : Boolean
-
- var
- linearVelocity : Vector2D
-
- var
- angularVelocity : Double
-
- var
- force : Vector2D
-
- var
- torque : Double
- Method Details |
- def
- fixed : Boolean
-
- def
- pos : Vector2D
- newPos -
new position
- def
- rotation : Double
- r -
new rotation
- def
- mass : Double
- Double.PositiveInfinity
).
- def
- I : Double
- Double.PositiveInfinity
).force -
applied forceforce -
applied forcepoint -
position vector of the point (in world coordinates)impulse -
applied impulseimpulse -
applied impulsepoint -
position vector of the point (in world coordinates)point
is contained in this body.override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
s
.s -
new shapeReturns the moment of inertia for rotations about the COM of this body
Returns the moment of inertia for rotations about the COM of this body.
+It is calculated using the moments of inertia of this body's shapes and the parallel axis theorem.
+If the body is fixed, its moment of inertia is infinite (Double.PositiveInfinity
).
Angular velocity of this body
Angular velocity of this body.
Applies a force to a point on this body
Applies a force to a point on this body. Warning: the point is considered to be contained within this body.
applied force
position vector of the point (in world coordinates)
Applies a force to the COM of this body
Applies a force to the COM of this body.
applied force
Applies an impulse to a point on this body
Applies an impulse to a point on this body. Warning: the point is considered to be contained within this body.
applied impulse
position vector of the point (in world coordinates)
Applies an impulse to the COM of this body
Applies an impulse to the COM of this body.
applied impulse
Checks if the point point
is contained in this body
Checks if the point point
is contained in this body.
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.
+
Returns whether this body is fixed or not
Returns whether this body is fixed or not.
Fixes or frees this body
Fixes or frees this body. By fixing, linear and angular velocities are set to zero.
Resulting force on the COM of this body
Resulting force on the COM of this body.
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.
+
Linear velocity of this body
Linear velocity of this body.
Returns the mass of this body
Returns the mass of this body. If the body is free, its mass is the sum of the masses of its shapes.
+If the body is fixed, its mass is infinite (Double.PositiveInfinity
).
Flag for a world to monitor the properties of this body
Flag for a world to monitor the properties of this body.
Returns the position of this body
Returns the position of this body. The position is equivalent to the center of mass.
Sets the position of this body
Sets the position of this body. By doing so all its shapes are translated.
new position
Returns the current rotation of this body
Returns the current rotation of this body.
Sets the rotation of this body
Sets the rotation of this body. Position and rotation of shapes are modified accordingly.
Shapes that belong to this body
Shapes that belong to this body.
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
Resulting torque on this body
Resulting torque on this body.
Unique identification number
Unique identification number.
Linear velocity of the given point on this body (in world coordinates)
Linear velocity of the given point on this body (in world coordinates).
Creates a new body containing this body's shapes and the shapes of another body b
Creates a new body containing this body's shapes and the shapes of another body b
.
body with extra shapes
new body
Creates a new body containing this body's shapes and the shape s
Creates a new body containing this body's shapes and the shape s
.
new shape
new body
- def
- ~(b : Body) : Body
-
-
-
- b
.b -
body with extra shapes- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/Circle.scala
]
-
- object
- Circle
- extends
(Double, Double) => Circle- Methods inherited from scala.Function2 - | |
- scala.Function2.toString, scala.Function2.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/Circle.scala
]
- case
- class
- Circle(val
radius : Double, val
density : Double)
- extends
Shape with
scala.Productradius -
radius of this circledensity -
density of this circleValue Summary | |
- val
- |
-
- I
- : Double
-
- Moment of inertia for a rotation about this shape's COM.
- |
-
- val
- |
-
- volume
- : Double
-
- 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.
- |
-
- Values and Variables inherited from Shape - | |
- uid, collidable, restitution, friction, pos, rotation, rotation0, refLocalPos, transientShapes - |
Method Summary | |
- def
- |
-
- AABB
- : AABB
-
- Returns this shape's axis aligned bounding box.
- |
-
- def
- |
-
- contains
- (point : Vector2D) : Boolean
-
- Checks if the point
- point is contained in this shape. |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- def
- |
-
- project
- (axis : Vector2D) : Projection
-
- Returns the projection of this shape onto the line given by the directional vector
- axis . |
-
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from Shape - | |
- mass, body, asBody, ~, ~ - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
A circle.
radius of this circle
density of this circle
Value Details |
- val
- volume : Double
-
- val
- I : Double
- Method Details |
- def
- AABB : AABB
-
- def
- project(axis : Vector2D) : Projection
- axis
.axis -
directional vector of the linepoint
is contained in this shape.override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
-
-
-
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- Returns this shape's axis aligned bounding box
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.
Density
Density. (Mass per area)
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.
+
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.
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).
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
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.
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.
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
.
override
- def
- productArity : Int
- override
- def
- productElement(arg0 : Int) : Any
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/Constraint.scala
]
-
- trait
- Constraint
- extends
AnyRefMethod Summary | |
- abstract def
- |
-
- correctPosition
- (h : Double) : Unit
+ + trait + + Constraint extends AnyRef + ++
+
+
+ All constraints in SiMS implement this trait. +Position and velocity can be corrected for each constraint. +The implementation of constraints was inspired by Erin Catto's box2d.
+
+
+
-
+
+ Inherits+
Corrects the positions of bodies according to this constraint.
- |
-
- abstract def
- |
-
- correctVelocity
- (h : Double) : Unit
- Corrects the velocities of bodies according to this constraint.
- |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Corrects the positions of bodies according to this constraint
Corrects the positions of bodies according to this constraint.
a time interval, used for converting forces and impulses
Method Details |
Corrects the velocities of bodies according to this constraint
Corrects the velocities of bodies according to this constraint.
a time interval, used for converting forces and impulses
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
abstract
- def
- correctVelocity(h : Double) : Unit
-
-
-
- h -
a time interval, used for converting forces and impulsesh -
a time interval, used for converting forces and impulses- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/Rectangle.scala
]
-
- object
- Rectangle
- extends
(Double, Double, Double) => Rectangle- Methods inherited from scala.Function3 - | |
- scala.Function3.toString, scala.Function3.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/Rectangle.scala
]
- case
- class
- Rectangle(val
halfWidth : Double, val
halfHeight : Double, val
density : Double)
- extends
Shape with
ConvexPolygon with
scala.ProducthalfWidth -
this rectangle's half widthhalfHeight -
this rectangle's half heightdensity -
density of this rectangleValue Summary | |
- val
- |
-
- I
- : Double
-
- Moment of inertia for a rotation about this shape's COM.
- |
-
- val
- |
-
- volume
- : Double
-
- 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.
- |
-
- Values and Variables inherited from Shape - | |
- uid, collidable, restitution, friction, pos, rotation, rotation0, refLocalPos, transientShapes - |
Method Summary | |
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- def
- |
-
- halfDiags
- : scala.Array[Vector2D]
-
- Returns the vectors from the center to the vertices of this rectangle.
- The first vertex is the upper-right vertex at a rotation of 0.
- Vertices are ordered counter-clockwise.
- |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- def
- |
-
- vertices
- : scala.Array[Vector2D]
-
- Returns the position vectors of this rectangle's vertices.
- The first vertex is the upper-right vertex at a rotation of 0.
- Vertices are ordered counter-clockwise.
- |
-
- Methods inherited from ConvexPolygon - | |
- sides, project, AABB, contains - |
- Methods inherited from Shape - | |
- mass, body, asBody, ~, ~ - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
A rectangle is a polygon.
this rectangle's half width
this rectangle's half height
density of this rectangle
Value Details |
- val
- volume : Double
-
- val
- I : Double
- Method Details |
- def
- halfDiags : scala.Array[Vector2D]
-
- def
- vertices : scala.Array[Vector2D]
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
-
-
-
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- Returns this polygon's axis aligned bounding box
Returns this polygon'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 polygon
Checks if the point point
is contained in this polygon.
+
+A ray is created, originating from the point and following an arbitrary direction (X-Axis was chosen). +The number of intersections between the ray and this polygon's sides (including vertices) is counted. +The amount of intersections with vertices is substracted form the previuos number. +If the latter number is odd, the point is contained in the polygon.
Density
Density. (Mass per area)
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.
+
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.
Returns the vectors from the center to the vertices of this rectangle
Returns the vectors from the center to the vertices of this rectangle. +The first vertex is the upper-right vertex at a rotation of 0. +Vertices are ordered counter-clockwise.
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).
Returns the projection of this polygon onto the line given by the directional vector axis
Returns the projection of this polygon onto the line given by the directional vector axis
.
directional vector of the line
projection of this polygon
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.
Returns all sides of this polygon
Returns all sides of this polygon. The sides are ordered counter-clockwise, the first vertex of the side +giving the side index.
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.
Returns the position vectors of this rectangle's vertices
Returns the position vectors of this rectangle's vertices. +The first vertex is the upper-right vertex at a rotation of 0. +Vertices are ordered counter-clockwise.@return position vectors of the vertices
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.
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
.
override
- def
- productArity : Int
- override
- def
- productElement(arg0 : Int) : Any
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/RegularPolygon.scala
]
-
- object
- RegularPolygon
- extends
(Int, Double, Double) => RegularPolygon- Methods inherited from scala.Function3 - | |
- scala.Function3.toString, scala.Function3.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/RegularPolygon.scala
]
- case
- class
- RegularPolygon(val
n : Int, val
radius : Double, val
density : Double)
- extends
Shape with
ConvexPolygon with
scala.Productn
sides whose excircle has a radius radius
.n -
nmber of sides.radius -
radius of the excircledensity -
density of this regular polygonIllegalArgumentException -
if n
is smaller than 3Value Summary | |
- val
- |
-
- I
- : Double
-
- Moment of inertia for a rotation about this shape's COM.
- |
-
- val
- |
-
- volume
- : Double
-
- 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.
- |
-
- Values and Variables inherited from Shape - | |
- uid, collidable, restitution, friction, pos, rotation, rotation0, refLocalPos, transientShapes - |
Method Summary | |
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- def
- |
- - halfDiags - : scala.Array[Vector2D] - - - | -
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- def
- |
-
- vertices
- : scala.Array[Vector2D]
-
- Returns positions of all vertices of this Polygon. Vertices are ordered counter-clockwise.
- |
-
- Methods inherited from ConvexPolygon - | |
- sides, project, AABB, contains - |
- Methods inherited from Shape - | |
- mass, body, asBody, ~, ~ - |
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
A regular polygon with n
sides whose excircle has a radius radius
.
nmber of sides.
radius of the excircle
density of this regular polygon
Value Details |
- val
- volume : Double
-
- val
- I : Double
- Method Details |
- def
- halfDiags : scala.Array[Vector2D]
-
- def
- vertices : scala.Array[Vector2D]
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
-
-
-
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- Returns this polygon's axis aligned bounding box
Returns this polygon'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 polygon
Checks if the point point
is contained in this polygon.
+
+A ray is created, originating from the point and following an arbitrary direction (X-Axis was chosen). +The number of intersections between the ray and this polygon's sides (including vertices) is counted. +The amount of intersections with vertices is substracted form the previuos number. +If the latter number is odd, the point is contained in the polygon.
Density
Density. (Mass per area)
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.
+
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.
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).
Returns the projection of this polygon onto the line given by the directional vector axis
Returns the projection of this polygon onto the line given by the directional vector axis
.
directional vector of the line
projection of this polygon
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.
Returns all sides of this polygon
Returns all sides of this polygon. The sides are ordered counter-clockwise, the first vertex of the side +giving the side index.
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.
Returns positions of all vertices of this Polygon
Returns positions of all vertices of this Polygon. Vertices are ordered counter-clockwise.
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.
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
.
override
- def
- productArity : Int
- override
- def
- productElement(arg0 : Int) : Any
- - - | -
- SiMS
- |
-
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
sims/dynamics/Shape.scala
]
-
- object
- Shape
- extends
AnyRef- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/Shape.scala
]
- abstract
- class
- Shape
- extends
AnyRefValue Summary | |
- abstract val
- |
-
- I
- : Double
-
- Moment of inertia for a rotation about this shape's COM.
- |
-
- var
- |
-
- collidable
- : Boolean
-
- Flag determining this shapes ability to collide with other shapes.
- |
-
- abstract val
- |
-
- density
- : Double
-
- Density. (Mass per area)
- |
-
- var
- |
-
- friction
- : Double
-
- 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.
- |
-
- var
- |
-
- pos
- : Vector2D
-
- Position of this shape's COM (in world coordinates).
- |
-
- var
- |
-
- refLocalPos
- : Vector2D
-
- Local position of this shape's body COM to its COM at a body rotation of zero.
- |
-
- var
- |
-
- restitution
- : Double
-
- 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.
- |
-
- var
- |
-
- rotation
- : Double
-
- Rotation of this shape about its COM.
- |
-
- var
- |
-
- rotation0
- : Double
-
- Initial rotation. Rotation of this shape before it was added to a body.
- |
-
- val
- |
-
- transientShapes
- : scala.collection.mutable.Set[Shape]
-
- Shapes with which this shape cannot collide.
- |
-
- val
- |
-
- uid
- : Int
-
- Unique identification number.
- |
-
- abstract val
- |
-
- volume
- : Double
-
- 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.
- |
-
Method Summary | |
- abstract def
- |
-
- AABB
- : AABB
-
- Returns this shape's axis aligned bounding box.
- |
-
- def
- |
-
- asBody
- : Body
-
- Creates a new body made out of tis shape.
- |
-
- def
- |
-
- body
- : Body
-
- Returns this shape's containing body.
- |
-
- abstract def
- |
-
- contains
- (point : Vector2D) : Boolean
-
- Checks if the point
- point is contained in this shape. |
-
- def
- |
-
- mass
- : Double
-
- Returns the mass of this shape. The mass is given by volume times density.
- |
-
- abstract def
- |
-
- project
- (axis : Vector2D) : Projection
-
- Returns the projection of this shape onto the line given by the directional vector
- axis . |
-
- def
- |
-
- ~
- (b : Body) : Body
-
- Creates a new body out of this shape and the shapes of body
- b . |
-
- def
- |
-
- ~
- (s : Shape) : Body
-
- Creates a new body out of this shape and the shape
- s . |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
An abstract shape.
Value Details |
- val
- uid : Int
-
- var
- collidable : Boolean
-
- var
- restitution : Double
-
- var
- friction : Double
-
- var
- pos : Vector2D
-
- var
- rotation : Double
-
- var
- rotation0 : Double
-
- var
- refLocalPos : Vector2D
- abstract
- val
- density : Double
- abstract
- val
- volume : Double
- abstract
- val
- I : Double
-
- val
- transientShapes : scala.collection.mutable.Set[Shape]
- Method Details |
- def
- mass : Double
-
- def
- body : Body
- abstract
- def
- AABB : AABB
- abstract
- def
- project(axis : Vector2D) : Projection
- axis
.axis -
directional vector of the linepoint
is contained in this shape.
- def
- asBody : Body
- s
.Returns this shape's axis aligned bounding box
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.
Density
Density. (Mass per area)
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.
+
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.
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).
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
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.
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.
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
.
- def
- ~(b : Body) : Body
-
-
-
- b
.- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/World.scala
]
-
- class
- World
- extends
AnyRefValue Summary | |
- val
- |
-
- bodies
- : scala.collection.mutable.ArrayBuffer[Body]
-
- Bodies contained in this world.
- |
-
- val
- |
-
- detector
- : Detector
-
- Collsion detector who manages collision detection in this world.
- |
-
- var
- |
-
- enableCollisionDetection
- : Boolean
-
- Flag to enable collision detection.
- |
-
- var
- |
-
- enablePositionCorrection
- : Boolean
-
- Flag to enable position correction for constraints.
- |
-
- var
- |
-
- gravity
- : Vector2D
-
- Gravity in this world.
- |
-
- var
- |
-
- iterations
- : Int
-
- Number of constraint corrections per time step.
- |
-
- val
- |
-
- joints
- : scala.collection.mutable.ArrayBuffer[Joint]
-
- Joints contained in this world.
- |
-
- var
- |
-
- minAngularVelocity
- : Double
-
- Minimal, non-zero angular velocity.
- |
-
- var
- |
-
- minLinearVelocity
- : Double
-
- Minimal, non-zero linear velocity.
- |
-
- val
- |
-
- monitors
- : scala.collection.mutable.ArrayBuffer[(java.lang.String, (Body) => java.lang.String)]
-
- Monitoring methods for bodies.
- |
-
- var
- |
-
- overCWarning
- : Boolean
-
- Warning if a body's velocity exceeds the speed of light.
- |
-
- var
- |
-
- time
- : Double
-
- Current time in this world.
- |
-
- var
- |
-
- timeStep
- : Double
-
- Time intervals in which this world simulates.
- |
-
Method Summary | |
- def
- |
-
- ++=
- (bs : scala.Seq[Body]) : Unit
-
- Adds the given sequence of bodies to this world.
- |
-
- def
- |
-
- +=
- (body : Body) : Unit
-
- Adds the given body to this world.
- |
-
- def
- |
-
- +=
- (p : Prefab) : Unit
-
- Adds the given prefabricated system of bodies and joints to this world.
- |
-
- def
- |
-
- +=
- (joint : Joint) : Unit
-
- Adds the given joint to this world.
- |
-
- def
- |
-
- --=
- (bs : scala.Seq[Body]) : Unit
-
- Removes the given sequence of bodies from this world.
- |
-
- def
- |
-
- -=
- (p : Prefab) : Unit
-
- Removes the given prefabricated system of bodies and joints from this world.
- |
-
- def
- |
-
- -=
- (body : Body) : Unit
-
- Removes the given body from this world.
- |
-
- def
- |
-
- -=
- (joint : Joint) : Unit
-
- Removes the given joint from this world.
- |
-
- def
- |
-
- clear
- : Unit
-
- Removes all bodies, joints and monitoring methods from this world.
- |
-
- def
- |
-
- info
- : java.lang.String
-
- Returns information about this world.
- |
-
- def
- |
-
- postStep
- : Unit
-
- Initially empty method that is executed after each time step. This method
- may be overriden to create custom behaviour in a world.
- |
-
- def
- |
-
- shapes
- : scala.Seq[Shape]
-
- Returns all shapes of all bodies in this world.
- |
-
- def
- |
-
- step
- : Unit
-
- Simulates a time step of the duration
- timeStep . |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
A world contains and simulates a system of rigid bodies and joints.
Value Details |
- var
- timeStep : Double
-
- var
- iterations : Int
-
- var
- gravity : Vector2D
-
- val
- bodies : scala.collection.mutable.ArrayBuffer[Body]
-
- val
- joints : scala.collection.mutable.ArrayBuffer[Joint]
-
- val
- monitors : scala.collection.mutable.ArrayBuffer[(java.lang.String, (Body) => java.lang.String)]
-
- The first element of the tuple is the method's title and the second the method.
- Example usage: monitors += ("Y-Position", _.pos.y.toString)
- This will calculate all bodies - whose monitor
field is set to
- true
- second position components.
- val
- detector : Detector
-
- var
- overCWarning : Boolean
-
- var
- enableCollisionDetection : Boolean
-
- var
- enablePositionCorrection : Boolean
-
- var
- minLinearVelocity : Double
-
- var
- minAngularVelocity : Double
-
- var
- time : Double
- Method Details |
- def
- clear : Unit
-
- def
- step : Unit
- timeStep
.
- - The time step is simulated in the following phases: -
postStep()
is executed.
- def
- postStep : Unit
- Adds the given sequence of bodies to this world
Adds the given sequence of bodies to this world.
Adds the given prefabricated system of bodies and joints to this world
Adds the given prefabricated system of bodies and joints to this world.
Adds the given joint to this world
Adds the given joint to this world.
Adds the given body to this world
Adds the given body to this world.
Removes the given sequence of bodies from this world
Removes the given sequence of bodies from this world.
Removes the given prefabricated system of bodies and joints from this world
Removes the given prefabricated system of bodies and joints from this world.
Removes the given joint from this world
Removes the given joint from this world.
Removes the given body from this world
Removes the given body from this world.
Bodies contained in this world
Bodies contained in this world.
Removes all bodies, joints and monitoring methods from this world
Removes all bodies, joints and monitoring methods from this world.
Collsion detector who manages collision detection in this world
Collsion detector who manages collision detection in this world.
Flag to enable collision detection
Flag to enable collision detection.
Flag to enable position correction for constraints
Flag to enable position correction for constraints.
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.
+
Gravity in this world
Gravity in this world.
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 information about this world
Returns information about this world.
Number of constraint corrections per time step
Number of constraint corrections per time step.
Joints contained in this world
Joints contained in this world.
Minimal, non-zero angular velocity
Minimal, non-zero angular velocity.
Minimal, non-zero linear velocity
Minimal, non-zero linear velocity.
Monitoring methods for bodies
Monitoring methods for bodies. +
+The first element of the tuple is the method's title and the second the method.
+Example usage: monitors += ("Y-Position", _.pos.y.toString)
+This will calculate all bodies - whose monitor
field is set to
+true
- second position components.
Warning if a body's velocity exceeds the speed of light
Warning if a body's velocity exceeds the speed of light.
Initially empty method that is executed after each time step
Initially empty method that is executed after each time step. This method +may be overriden to create custom behaviour in a world.
Returns all shapes of all bodies in this world
Returns all shapes of all bodies in this world.
Simulates a time step of the duration timeStep
Simulates a time step of the duration timeStep
.
+
+The time step is simulated in the following phases: +
postStep()
is executed.Current time in this world
Current time in this world.
Time intervals in which this world simulates
Time intervals in which this world simulates.
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- def
- info : java.lang.String
-
-
-
- - - | -
- SiMS
- |
-
Class Summary | |
- case class
- |
-
- DistanceJoint
- (val node1 : Body, val anchor1 : Vector2D, val node2 : Body, val anchor2 : Vector2D) extends Joint with scala.Product
-
- DistanceJoints keep their connection points at a constant distance.
- |
-
- trait
- |
-
- ForceJoint
- extends AnyRef
-
- A joint which can apply a force to its anchor bodies, thus adding or removing energy to the system.
- |
-
- abstract class
- |
-
- Joint
- extends Constraint with AnyRef
-
- Joints constrain the movement of two bodies.
- Their implementation was inspired by Erin Catto's box2d.
- |
-
- case class
- |
-
- RevoluteJoint
- (val node1 : Body, val node2 : Body, val anchor : Vector2D) extends Joint with scala.Product
-
- A revolute joint that connects two bodies at a singe point. Inspired from JBox2D.
- Warning: there are still several bugs with revolute joints, if they are between two free
- bodies and not connected at their respective COMs.
- |
-
- case class
- |
-
- SpringJoint
- (val node1 : Body, val anchor1 : Vector2D, val node2 : Body, val anchor2 : Vector2D, val springConstant : Double, val initialLength : Double) extends Joint with ForceJoint with scala.Product
-
- A spring obeying Hooke's law.
- |
-
Object Summary | |
- object
- |
-
- DistanceJoint
- extends (Body, Vector2D, Body, Vector2D) => DistanceJoint
-
-
- |
-
- object
- |
-
- RevoluteJoint
- extends (Body, Body, Vector2D) => RevoluteJoint
-
-
- |
-
- object
- |
-
- SpringJoint
- extends (Body, Vector2D, Body, Vector2D, Double, Double) => SpringJoint
-
-
- |
-
- sims.dynamics.joints - |
- - | -
- SiMS
- |
-
sims/dynamics/joints/DistanceJoint.scala
]
-
- object
- DistanceJoint
- extends
(Body, Vector2D, Body, Vector2D) => DistanceJoint- Methods inherited from scala.Function4 - | |
- scala.Function4.toString, scala.Function4.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/joints/DistanceJoint.scala
]
- case
- class
- DistanceJoint(val
node1 : Body, val
anchor1 : Vector2D, val
node2 : Body, val
anchor2 : Vector2D)
- extends
Joint with
scala.Productnode1 -
first associated bodyanchor1 -
first connection pointnode2 -
second associated bodyanchor2 -
second connection pointAdditional Constructor Summary | |
- def
- |
- - this - (node1 : Body, node2 : Body) : DistanceJoint - - - | -
Value Summary | |
- val
- |
-
- distance
- : Double
-
- Distance between the two connection points at initialisation (the desired distance).
- |
-
Method Summary | |
- def
- |
-
- connection1
- : Vector2D
-
- Returns the connection point on body one (in world coordinates).
- |
-
- def
- |
-
- connection2
- : Vector2D
-
- Returns the connection point on body two (in world coordinates).
- |
-
- override def
- |
-
- correctPosition
- (h : Double) : Unit
-
- Corrects the positions of this joint's associated bodies.
- |
-
- override def
- |
-
- correctVelocity
- (h : Double) : Unit
-
- Corrects the velocities of this joint's associated bodies.
- |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- def
- |
-
- v
- : Vector2D
-
- Relative velocity of the connection points.
- |
-
- def
- |
-
- x
- : Vector2D
-
- Relative position of the connection points.
- |
-
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Additional Constructor Details |
Value Details |
- val
- distance : Double
- Method Details |
- def
- connection1 : Vector2D
-
- def
- connection2 : Vector2D
-
- def
- x : Vector2D
-
- def
- v : Vector2D
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- - - | -
- SiMS
- |
-
DistanceJoints keep their connection points at a constant distance.
first associated body
first connection point
second associated body
second connection point
Returns the connection point on body one (in world coordinates)
Returns the connection point on body one (in world coordinates).
Returns the connection point on body two (in world coordinates)
Returns the connection point on body two (in world coordinates).
Corrects the positions of this joint's associated bodies
Corrects the positions of this joint's associated bodies.@param h a time interval, used for converting forces and impulses
Corrects the velocities of this joint's associated bodies
Corrects the velocities of this joint's associated bodies.@param h a time interval, used for converting forces and impulses
Distance between the two connection points at initialisation (the desired distance)
Distance between the two connection points at initialisation (the desired distance).
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.
+
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.
+
First body of the joint
First body of the joint.
Second body of the joint
Second body of the joint.
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
Relative velocity of the connection points
Relative velocity of the connection points.
Relative position of the connection points
Relative position of the connection points.
- - | -
- SiMS
- |
-
sims/dynamics/joints/ForceJoint.scala
]
-
- trait
- ForceJoint
- extends
AnyRefMethod Summary | |
- abstract def
- |
-
- applyForce
- : Unit
+ + trait + + ForceJoint extends AnyRef + ++
+
+
+ A joint which can apply a force to its anchor bodies, thus adding or removing energy to the system.
+ known subclasses: SpringJoint
+
+
+
+
+
-
+
+ Inherits+
Applies a force on the achor bodies.
- |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Applies a force on the achor bodies
Applies a force on the achor bodies.
Method Details |
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
abstract
- def
- applyForce : Unit
-
-
-
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/joints/Joint.scala
]
- abstract
- class
- Joint
- extends
Constraint with
AnyRefValue Summary | |
- abstract val
- |
-
- node1
- : Body
-
- First body of the joint.
- |
-
- abstract val
- |
-
- node2
- : Body
-
- Second body of the joint.
- |
-
Method Summary | |
- abstract def
- |
-
- correctPosition
- (h : Double) : Unit
-
- Corrects the positions of this joint's associated bodies.
- |
-
- abstract def
- |
-
- correctVelocity
- (h : Double) : Unit
-
- Corrects the velocities of this joint's associated bodies.
- |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Joints constrain the movement of two bodies. +Their implementation was inspired by Erin Catto's box2d.
Value Details |
abstract
- val
- node1 : Body
-
-
-
- abstract
- val
- node2 : Body
- Method Details |
Corrects the positions of this joint's associated bodies
Corrects the positions of this joint's associated bodies.@param h a time interval, used for converting forces and impulses
Corrects the velocities of this joint's associated bodies
Corrects the velocities of this joint's associated bodies.@param h a time interval, used for converting forces and impulses
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.
+
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.
+
First body of the joint
First body of the joint.
Second body of the joint
Second body of the joint.
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
abstract
- def
- correctVelocity(h : Double) : Unit
- abstract
- def
- correctPosition(h : Double) : Unit
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/joints/RevoluteJoint.scala
]
-
- object
- RevoluteJoint
- extends
(Body, Body, Vector2D) => RevoluteJoint- Methods inherited from scala.Function3 - | |
- scala.Function3.toString, scala.Function3.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/joints/RevoluteJoint.scala
]
- case
- class
- RevoluteJoint(val
node1 : Body, val
node2 : Body, val
anchor : Vector2D)
- extends
Joint with
scala.ProductMethod Summary | |
- def
- |
- - connection1 - : Vector2D - - - | -
- def
- |
- - connection2 - : Vector2D - - - | -
- def
- |
-
- correctPosition
- (h : Double) : Unit
-
- Corrects the positions of this joint's associated bodies.
- |
-
- def
- |
-
- correctVelocity
- (h : Double) : Unit
-
- Corrects the velocities of this joint's associated bodies.
- |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- def
- |
- - v - : Vector2D - - - | -
- def
- |
- - x - : Vector2D - - - | -
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
A revolute joint that connects two bodies at a singe point. Inspired from JBox2D. +Warning: there are still several bugs with revolute joints, if they are between two free +bodies and not connected at their respective COMs.
Method Details |
- def
- connection1 : Vector2D
-
- def
- connection2 : Vector2D
-
- def
- x : Vector2D
-
- def
- v : Vector2D
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- Corrects the positions of this joint's associated bodies
Corrects the positions of this joint's associated bodies.@param h a time interval, used for converting forces and impulses
Corrects the velocities of this joint's associated bodies
Corrects the velocities of this joint's associated bodies.@param h a time interval, used for converting forces and impulses
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.
+
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.
+
First body of the joint
First body of the joint.
Second body of the joint
Second body of the joint.
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- def
- productElement(arg0 : Int) : Any
-
-
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/joints/SpringJoint.scala
]
-
- object
- SpringJoint
- extends
(Body, Vector2D, Body, Vector2D, Double, Double) => SpringJoint- Methods inherited from scala.Function6 - | |
- scala.Function6.toString, scala.Function6.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/joints/SpringJoint.scala
]
- case
- class
- SpringJoint(val
node1 : Body, val
anchor1 : Vector2D, val
node2 : Body, val
anchor2 : Vector2D, val
springConstant : Double, val
initialLength : Double)
- extends
Joint with
ForceJoint with
scala.Productnode1 -
first associated bodyanchor1 -
first connection pointnode2 -
second associated bodyanchor2 -
second connection pointspringConstant -
spring constantinitialLength -
initial lengthAdditional Constructor Summary | |
- def
- |
- - this - (node1 : Body, node2 : Body, springConstant : Double, initialLength : Double) : SpringJoint - - - | -
- def
- |
- - this - (node1 : Body, anchor1 : Vector2D, node2 : Body, anchor2 : Vector2D, springConstant : Double) : SpringJoint - - - | -
- def
- |
- - this - (node1 : Body, node2 : Body, springConstant : Double) : SpringJoint - - - | -
Value Summary | |
- var
- |
-
- damping
- : Double
-
- Damping.
- |
-
Method Summary | |
- def
- |
-
- applyForce
- : Unit
-
- Applies the spring force to the connection points.
- |
-
- def
- |
-
- connection1
- : Vector2D
-
- Returns the connection point on body one (in world coordinates).
- |
-
- def
- |
-
- connection2
- : Vector2D
-
- Returns the connection point on body two (in world coordinates).
- |
-
- def
- |
-
- correctPosition
- (h : Double) : Unit
-
- Corrects the positions of this joint's associated bodies.
- |
-
- def
- |
-
- correctVelocity
- (h : Double) : Unit
-
- Corrects the velocities of this joint's associated bodies.
- |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- def
- |
-
- force
- : Double
-
- Returns the spring force.
- |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- def
- |
-
- v
- : Vector2D
-
- Relative velocity of the connection points.
- |
-
- def
- |
-
- x
- : Vector2D
-
- Relative position of the connection points.
- |
-
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Additional Constructor Details |
- def
- this(node1 : Body, anchor1 : Vector2D, node2 : Body, anchor2 : Vector2D, springConstant : Double) : SpringJoint
-
- def
- this(node1 : Body, node2 : Body, springConstant : Double, initialLength : Double) : SpringJoint
-
- def
- this(node1 : Body, node2 : Body, springConstant : Double) : SpringJoint
- Value Details |
Method Details |
- def
- connection1 : Vector2D
-
- def
- connection2 : Vector2D
-
- def
- x : Vector2D
-
- def
- v : Vector2D
-
- def
- force : Double
-
- def
- applyForce : Unit
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- - - | -
- SiMS
- |
-
A spring obeying Hooke's law.
first associated body
first connection point
second associated body
second connection point
spring constant
initial length
Applies the spring force to the connection points
Applies the spring force to the connection points.
Returns the connection point on body one (in world coordinates)
Returns the connection point on body one (in world coordinates).
Returns the connection point on body two (in world coordinates)
Returns the connection point on body two (in world coordinates).
Corrects the positions of this joint's associated bodies
Corrects the positions of this joint's associated bodies.@param h a time interval, used for converting forces and impulses
Corrects the velocities of this joint's associated bodies
Corrects the velocities of this joint's associated bodies.@param h a time interval, used for converting forces and impulses
Damping
Damping.
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.
+
Returns the spring force
Returns the spring force.
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.
+
First body of the joint
First body of the joint.
Second body of the joint
Second body of the joint.
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
Relative velocity of the connection points
Relative velocity of the connection points.
Relative position of the connection points
Relative position of the connection points.
DistanceJoints keep their connection points at a constant distance
+A joint which can apply a force to its anchor bodies, thus adding or removing energy to the system
+Joints constrain the movement of two bodies
+A revolute joint that connects two bodies at a singe point
+A spring obeying Hooke's law
+Class Summary | |
- case class
- |
-
- PrismaticJoint
- (val node1 : Body, val anchor1 : Vector2D, val node2 : Body, val anchor2 : Vector2D) extends Joint with scala.Product
-
-
- |
-
- class
- |
-
- UnitCircleJoint
- (body : Body, anchor : Vector2D) extends Joint
-
-
- |
-
Object Summary | |
- object
- |
-
- PrismaticJoint
- extends (Body, Vector2D, Body, Vector2D) => PrismaticJoint
-
-
- |
-
- sims.dynamics.joints.test - |
- - | -
- SiMS
- |
-
sims/dynamics/joints/test/PrismaticJoint.scala
]
-
- object
- PrismaticJoint
- extends
(Body, Vector2D, Body, Vector2D) => PrismaticJoint- Methods inherited from scala.Function4 - | |
- scala.Function4.toString, scala.Function4.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/dynamics/joints/test/PrismaticJoint.scala
]
- case
- class
- PrismaticJoint(val
node1 : Body, val
anchor1 : Vector2D, val
node2 : Body, val
anchor2 : Vector2D)
- extends
Joint with
scala.ProductAdditional Constructor Summary | |
- def
- |
- - this - (node1 : Body, node2 : Body) : PrismaticJoint - - - | -
Value Summary | |
- val
- |
- - angle - : Double - - - | -
Method Summary | |
- def
- |
- - connection1 - : Vector2D - - - | -
- def
- |
- - connection2 - : Vector2D - - - | -
- def
- |
- - correctAngular - (h : Double) : Unit - - - | -
- def
- |
- - correctLinear - (h : Double) : Unit - - - | -
- def
- |
-
- correctPosition
- (h : Double) : Unit
-
- Corrects the positions of this joint's associated bodies.
- |
-
- def
- |
-
- correctVelocity
- (h : Double) : Unit
-
- Corrects the velocities of this joint's associated bodies.
- |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- def
- |
- - v - : Vector2D - - - | -
- def
- |
- - x - : Vector2D - - - | -
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Additional Constructor Details |
Value Details |
Method Details |
- def
- connection1 : Vector2D
-
- def
- connection2 : Vector2D
-
- def
- x : Vector2D
-
- def
- v : Vector2D
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- - - | -
- SiMS
- |
-
Corrects the positions of this joint's associated bodies
Corrects the positions of this joint's associated bodies.@param h a time interval, used for converting forces and impulses
Corrects the velocities of this joint's associated bodies
Corrects the velocities of this joint's associated bodies.@param h a time interval, used for converting forces and impulses
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.
+
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.
+
First body of the joint
First body of the joint.
Second body of the joint
Second body of the joint.
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
sims/dynamics/joints/test/UnitCircleJoint.scala
]
-
- class
- UnitCircleJoint(body : Body, anchor : Vector2D)
- extends
JointValue Summary | |
- val
- |
-
- node1
- : Body
-
- First body of the joint.
- |
-
- val
- |
-
- node2
- : Body
-
- Second body of the joint.
- |
-
Method Summary | |
- def
- |
- - connection - : Vector2D - - - | -
- def
- |
-
- correctPosition
- (h : Double) : Unit
-
- Corrects the positions of this joint's associated bodies.
- |
-
- def
- |
-
- correctVelocity
- (h : Double) : Unit
-
- Corrects the velocities of this joint's associated bodies.
- |
-
- def
- |
- - v - : Vector2D - - - | -
- def
- |
- - x - : Vector2D - - - | -
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- node1 : Body
-
- val
- node2 : Body
- Method Details |
- def
- connection : Vector2D
-
- def
- x : Vector2D
-
- def
- v : Vector2D
- Corrects the positions of this joint's associated bodies
Corrects the positions of this joint's associated bodies.@param h a time interval, used for converting forces and impulses
Corrects the velocities of this joint's associated bodies
Corrects the velocities of this joint's associated bodies.@param h a time interval, used for converting forces and impulses
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.
+
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.
+
First body of the joint
First body of the joint.
Second body of the joint
Second body of the joint.
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- def
- correctPosition(h : Double) : Unit
-
-
-
- - - | -
- SiMS
- |
-
A two dimensional rigid body is made out of shapes
+A circle
+All constraints in SiMS implement this trait
+A rectangle is a polygon
+A regular polygon with n
sides whose excircle has a radius radius
An abstract shape
+A world contains and simulates a system of rigid bodies and joints
+Class Summary | |
- trait
- |
-
- ConvexPolygon
- extends AnyRef
-
- Common properties of all convex polygons.
- |
-
- case class
- |
-
- Projection
- (val axis : Vector2D, val lower : Double, val upper : Double) extends scala.Product
-
- Projection on an axis.
- |
-
- case class
- |
-
- Ray
- (val point : Vector2D, val direction : Vector2D) extends scala.Product
-
- A ray.
- |
-
- case class
- |
-
- Segment
- (val vertex1 : Vector2D, val vertex2 : Vector2D) extends scala.Product
-
- A segment is given by its vertices.
- |
-
- case class
- |
-
- Vector2D
- (val x : Double, val y : Double) extends scala.Product
-
- A 2D vector.
- |
-
Object Summary | |
- object
- |
-
- Projection
- extends (Vector2D, Double, Double) => Projection
-
-
- |
-
- object
- |
-
- Ray
- extends (Vector2D, Vector2D) => Ray
-
-
- |
-
- object
- |
-
- Segment
- extends (Vector2D, Vector2D) => Segment
-
-
- |
-
- object
- |
-
- Vector2D
- extends AnyRef
-
- Contains special vectors.
- |
-
- sims.geometry - |
- - | -
- SiMS
- |
-
sims/geometry/ConvexPolygon.scala
]
-
- trait
- ConvexPolygon
- extends
AnyRefMethod Summary | |
- def
- |
-
- AABB
- : AABB
-
- Returns this polygon's axis aligned bounding box.
- |
-
- def
- |
-
- contains
- (point : Vector2D) : Boolean
-
- Checks if the point
- point is contained in this polygon. |
-
- def
- |
-
- project
- (axis : Vector2D) : Projection
+ + trait + + ConvexPolygon extends AnyRef + ++
+
+
+ Common properties of all convex polygons.
+ known subclasses: RegularPolygon, Rectangle
+
+
+
+
+
-
+
+ Inherits+
Returns the projection of this polygon onto the line given by the directional vector
- axis . |
-
- def
- |
-
- sides
- : scala.Array[Segment]
- Returns all sides of this polygon. The sides are ordered counter-clockwise, the first vertex of the side
- giving the side index.
- |
-
- abstract def
- |
-
- vertices
- : scala.Seq[Vector2D]
- Returns positions of all vertices of this Polygon. Vertices are ordered counter-clockwise.
- |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Returns this polygon's axis aligned bounding box
Returns this polygon's axis aligned bounding box.
Method Details |
- def
- sides : scala.Array[Segment]
- Checks if the point point
is contained in this polygon
Checks if the point point
is contained in this polygon.
+
+A ray is created, originating from the point and following an arbitrary direction (X-Axis was chosen). +The number of intersections between the ray and this polygon's sides (including vertices) is counted. +The amount of intersections with vertices is substracted form the previuos number. +If the latter number is odd, the point is contained in the polygon.
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.
+
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 projection of this polygon onto the line given by the directional vector axis
Returns the projection of this polygon onto the line given by the directional vector axis
.
directional vector of the line
projection of this polygon
Returns all sides of this polygon
Returns all sides of this polygon. The sides are ordered counter-clockwise, the first vertex of the side +giving the side index.
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
Returns positions of all vertices of this Polygon
Returns positions of all vertices of this Polygon. Vertices are ordered counter-clockwise.
- def
- project(axis : Vector2D) : Projection
-
-
-
- axis
.axis -
directional vector of the line
- def
- AABB : AABB
- point
is contained in this polygon.
- - A ray is created, originating from the point and following an arbitrary direction (X-Axis was chosen). - The number of intersections between the ray and this polygon's sides (including vertices) is counted. - The amount of intersections with vertices is substracted form the previuos number. - If the latter number is odd, the point is contained in the polygon.
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/geometry/Projection.scala
]
-
- object
- Projection
- extends
(Vector2D, Double, Double) => Projection- Methods inherited from scala.Function3 - | |
- scala.Function3.toString, scala.Function3.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/geometry/Projection.scala
]
- case
- class
- Projection(val
axis : Vector2D, val
lower : Double, val
upper : Double)
- extends
scala.Product- Projections are commonly used in SiMS for collision detection.
axis -
directional vector of the axis of the projectionlower -
lower value of the projectionupper -
upper value of the projectionMethod Summary | |
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- def
- |
-
- overlap
- (other : Projection) : Double
-
- Returns the overlap between this projection and another projection
- other . |
-
- def
- |
-
- overlaps
- (other : Projection) : Boolean
-
- Checks this projection for overlap with another projection
- other . |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Projection on an axis. +
+Projections are commonly used in SiMS for collision detection.
directional vector of the axis of the projection
lower value of the projection
upper value of the projection
Method Details |
- def
- overlaps(other : Projection) : Boolean
- other
.IllegalArgumentExcepion -
if both projections axes aren't the same
- def
- overlap(other : Projection) : Double
- other
.IllegalArgumentExcepion -
if both projections axes aren't the sameoverride
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
-
-
-
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- 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.
+
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 overlap between this projection and another projection other
Returns the overlap between this projection and another projection other
.
Checks this projection for overlap with another projection other
Checks this projection for overlap with another projection other
.
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- def
- productArity : Int
- override
- def
- productElement(arg0 : Int) : Any
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/geometry/Ray.scala
]
-
- object
- Ray
- extends
(Vector2D, Vector2D) => Ray- Methods inherited from scala.Function2 - | |
- scala.Function2.toString, scala.Function2.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/geometry/Ray.scala
]
- case
- class
- Ray(val
point : Vector2D, val
direction : Vector2D)
- extends
scala.Productpoint -
a point on the raydirection -
this ray's directional vectorIllegalArgumentException -
if the directional vector is the null vectorMethod Summary | |
- def
- |
-
- contains
- (p : Vector2D) : Boolean
-
- Checks if this ray contains the point
- p . |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- def
- |
-
- intersects
- (s : Segment) : Boolean
-
- Checks this ray and the given segment for intersection.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
A ray.
a point on the ray
this ray's directional vector
Method Details |
s -
the segment to test for intersectionp
.override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- Checks if this ray contains the point p
Checks if this ray contains the point p
.
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.
+
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.
+
Checks this ray and the given segment for intersection
Checks this ray and the given segment for intersection.
the segment to test for intersection
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- def
- productElement(arg0 : Int) : Any
-
-
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/geometry/Segment.scala
]
-
- object
- Segment
- extends
(Vector2D, Vector2D) => Segment- Methods inherited from scala.Function2 - | |
- scala.Function2.toString, scala.Function2.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/geometry/Segment.scala
]
- case
- class
- Segment(val
vertex1 : Vector2D, val
vertex2 : Vector2D)
- extends
scala.Productvertex1 -
position vector of the first vertexvertex2 -
position vector of the second vertexIllegalArgumentException -
if both vertices are equalValue Summary | |
- val
- |
-
- d
- : Vector2D
-
- Vector from
- vertex1 to vertex2 . |
-
- val
- |
-
- d0
- : Vector2D
-
- Unit directional vector.
- |
-
- val
- |
-
- length
- : Double
-
- Length of this segment.
- |
-
- val
- |
-
- n
- : Vector2D
-
- Right normal vector.
- |
-
- val
- |
-
- n0
- : Vector2D
-
- Right normal unit vector.
- |
-
Method Summary | |
- def
- |
- - clipToSegment - (s : Segment) : scala.Option[Vector2D] - - - | -
- def
- |
-
- distance
- (point : Vector2D) : Double
-
- Smallest distance between this segment and the point
- point . |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
A segment is given by its vertices.
position vector of the first vertex
position vector of the second vertex
Value Details |
- val
- length : Double
-
- val
- d : Vector2D
- vertex1
to vertex2
.
- val
- d0 : Vector2D
-
- val
- n : Vector2D
-
- val
- n0 : Vector2D
- Method Details |
point
.
- def
- clipToSegment(s : Segment) : scala.Option[Vector2D]
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- Vector from vertex1
to vertex2
Vector from vertex1
to vertex2
.
Unit directional vector
Unit directional vector.
Smallest distance between this segment and the point point
Smallest distance between this segment and the point point
.
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.
+
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.
+
Length of this segment
Length of this segment.
Right normal vector
Right normal vector.
Right normal unit vector
Right normal unit vector.
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- def
- productElement(arg0 : Int) : Any
-
-
- - - | -
- SiMS
- |
-
Contains special vectors.
Null vector
Null vector.
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.
+
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.
+
Horizontal unit vector
Horizontal unit vector. (1,0)
Vertical unit vector
Vertical unit vector. (0,1)
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
sims/geometry/Vector2D.scala
]
-
- object
- Vector2D
- extends
AnyRefValue Summary | |
- val
- |
-
- Null
- : Vector2D
-
- Null vector.
- |
-
- val
- |
-
- i
- : Vector2D
-
- Horizontal unit vector. (1,0)
- |
-
- val
- |
-
- j
- : Vector2D
-
- Vertical unit vector. (0,1)
- |
-
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- Null : Vector2D
-
- val
- i : Vector2D
-
- val
- j : Vector2D
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/geometry/Vector2D.scala
]
- case
- class
- Vector2D(val
x : Double, val
y : Double)
- extends
scala.Productx -
1st componenty -
2nd componentValue Summary | |
- val
- |
-
- length
- : Double
-
- Norm or length of this vector.
- |
-
Method Summary | |
- def
- |
-
- *
- (n : Double) : Vector2D
-
- Scalar multiplication.
- |
-
- def
- |
-
- +
- (v : Vector2D) : Vector2D
-
- Vector addition.
- |
-
- def
- |
-
- -
- (v : Vector2D) : Vector2D
-
- Vector substraction.
- |
-
- def
- |
-
- /
- (n : Double) : Vector2D
-
- Scalar division.
- |
-
- def
- |
-
- components
- : scala.List[Double]
-
- Returns a list of this vector's components.
- |
-
- def
- |
-
- cross
- (v : Vector2D) : Double
-
- Cross product. Length only because in 2D. The direction would be given by the x3-axis.
- |
-
- def
- |
-
- dot
- (v : Vector2D) : Double
-
- Dot product.
- |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- def
- |
-
- isNull
- : Boolean
-
- Checks if this vector is the null vector.
- |
-
- def
- |
-
- leftNormal
- : Vector2D
-
- Left normal vector. (-y, x)
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- def
- |
-
- project
- (v : Vector2D) : Vector2D
-
- Returns the projection of this vector onto the vector
- v . |
-
- def
- |
-
- rightNormal
- : Vector2D
-
- Right normal vector. (y, -x)
- |
-
- def
- |
-
- rotate
- (angle : Double) : Vector2D
-
- Returns a rotation of this vector by
- angle radian. |
-
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- def
- |
-
- unary_-
- : Vector2D
-
- Unary minus.
- |
-
- def
- |
-
- unit
- : Vector2D
-
- Unit vector.
- |
-
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
A 2D vector.
1st component
2nd component
Value Details |
Method Details |
- def
- unary_- : Vector2D
-
- def
- unit : Vector2D
- v
.angle
radian.
- def
- leftNormal : Vector2D
-
- def
- rightNormal : Vector2D
-
- def
- isNull : Boolean
-
- def
- components : scala.List[Double]
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- Scalar multiplication
Scalar multiplication.
Vector addition
Vector addition.
Vector substraction
Vector substraction.
Scalar division
Scalar division.
Returns a list of this vector's components
Returns a list of this vector's components.
Cross product
Cross product. Length only because in 2D. The direction would be given by the x3-axis.
Dot product
Dot product.
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.
+
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.
+
Checks if this vector is the null vector
Checks if this vector is the null vector.
Left normal vector
Left normal vector. (-y, x)
Norm or length of this vector
Norm or length of this vector.
Returns the projection of this vector onto the vector v
Returns the projection of this vector onto the vector v
.
Right normal vector
Right normal vector. (y, -x)
Returns a rotation of this vector by angle
radian
Returns a rotation of this vector by angle
radian.
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
Unary minus
Unary minus.
Unit vector
Unit vector.
override
- def
- productElement(arg0 : Int) : Any
-
-
- - - | -
- SiMS
- |
-
Common properties of all convex polygons
+Projection on an axis
+A ray
+A segment is given by its vertices
+A 2D vector
+Contains special vectors
+Class Summary | |
- case class
- |
-
- Matrix22
- (val c11 : Double, val c12 : Double, val c21 : Double, val c22 : Double) extends scala.Product
-
- A 2x2 matrix.
- |
-
Object Summary | |
- object
- |
-
- Matrix22
- extends AnyRef
-
-
- |
-
- sims.math - |
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
sims/math/Matrix22.scala
]
-
- object
- Matrix22
- extends
AnyRefMethod Summary | |
- def
- |
- - apply - (c1 : Vector2D, c2 : Vector2D) : Matrix22 - - - | -
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Method Details |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/math/Matrix22.scala
]
- case
- class
- Matrix22(val
c11 : Double, val
c12 : Double, val
c21 : Double, val
c22 : Double)
- extends
scala.Productc11 -
component 1,1c12 -
component 1,2c21 -
component 2,1c22 -
component 2,2Additional Constructor Summary | |
- def
- |
-
- this
- (c1 : Vector2D, c2 : Vector2D) : Matrix22
-
- A 2x2 matrix can be created with two 2D vectors. In this case, each column is represented by a vector.
- |
-
Method Summary | |
- def
- |
-
- *
- (v : Vector2D) : Vector2D
-
- Multiplikation with a 2D vector.
- |
-
- def
- |
-
- *
- (m : Matrix22) : Matrix22
-
- Matrix multiplication.
- |
-
- def
- |
-
- *
- (n : Double) : Matrix22
-
- Scalar multiplication.
- |
-
- def
- |
-
- +
- (m : Matrix22) : Matrix22
-
- Addition.
- |
-
- def
- |
-
- det
- : Double
-
- Determinant of this matrix.
- |
-
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- def
- |
-
- invert
- : Matrix22
-
- Inverse.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Additional Constructor Details |
c1 -
first columnc2 -
second columnMethod Details |
- def
- det : Double
- A 2x2 matrix.
component 1,1
component 1,2
component 2,1
component 2,2
- def
- +(m : Matrix22) : Matrix22
-
-
-
- Multiplikation with a 2D vector
Multiplikation with a 2D vector.
Matrix multiplication
Matrix multiplication.
Scalar multiplication
Scalar multiplication.
Addition
Addition.
Determinant of this matrix
Determinant of this matrix.
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.
+
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.
+
Inverse
Inverse.
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- def
- *(v : Vector2D) : Vector2D
- A 2x2 matrix can be created with two 2D vectors
A 2x2 matrix can be created with two 2D vectors. In this case, each column is represented by a vector.
first column
second column
- def
- invert : Matrix22
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- - - | -
- SiMS
- |
-
Class Summary | |
- class
- |
-
- Net
- (width : Int, height : Int, initPos : Vector2D) extends Prefab
-
-
- |
-
- trait
- |
-
- Prefab
- extends AnyRef
-
-
- |
-
- class
- |
-
- Pylon
- extends Prefab
-
-
- |
-
- class
- |
-
- Ragdoll
- (position : Vector2D) extends Prefab
-
-
- |
-
- sims.prefabs - |
- - | -
- SiMS
- |
-
sims/prefabs/Net.scala
]
-
- class
- Net(width : Int, height : Int, initPos : Vector2D)
- extends
PrefabValue Summary | |
- override val
- |
- - bodies - : scala.List[Body] - - - | -
- override val
- |
- - joints - : scala.List[DistanceJoint] - - - | -
- val
- |
- - nodeDensity - : Double - - - | -
- val
- |
- - nodeDistance - : Double - - - | -
- val
- |
- - nodeRadius - : Double - - - | -
- val
- |
- - springConstant - : Double - - - | -
- val
- |
- - springDamping - : Double - - - | -
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- nodeDistance : Double
-
- val
- nodeRadius : Double
-
- val
- nodeDensity : Double
-
- val
- springConstant : Double
-
- val
- springDamping : Double
- override
- val
- bodies : scala.List[Body]
- 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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- val
- joints : scala.List[DistanceJoint]
-
-
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/prefabs/Prefab.scala
]
-
- trait
- Prefab
- extends
AnyRefValue Summary | |
- val
- |
-
- bodies
- : scala.Iterable[Body]
-
+
+
+
+
+ Prefab++ trait + + Prefab extends AnyRef + ++ + +
+
+
+
-
+
+ Inherits+
|
-
- val
- |
- - joints - : scala.Iterable[Joint] - | -
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- val
- bodies : scala.Iterable[Body]
-
-
-
- val
- joints : scala.Iterable[Joint]
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/prefabs/Pylon.scala
]
-
- class
- Pylon
- extends
PrefabValue Summary | |
- val
- |
- - beamHeight - : Double - - - | -
- val
- |
- - beamNumber - : Int - - - | -
- val
- |
- - beamWidth - : Double - - - | -
- lazy val
- |
- - beams - : scala.List[DistanceJoint] - - - | -
- override val
- |
- - bodies - : scala.List[Body] - - - | -
- override val
- |
- - joints - : scala.List[DistanceJoint] - - - | -
- val
- |
- - nodeDensity - : Double - - - | -
- lazy val
- |
- - nodes - : scala.List[Body] - - - | -
- val
- |
- - position - : Vector2D - - - | -
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- position : Vector2D
-
- val
- nodeDensity : Double
-
- val
- beamHeight : Double
-
- val
- beamWidth : Double
-
- val
- beamNumber : Int
-
- lazy val
- nodes : scala.List[Body]
-
- lazy val
- beams : scala.List[DistanceJoint]
- override
- val
- bodies : scala.List[Body]
- 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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- val
- joints : scala.List[DistanceJoint]
-
-
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/prefabs/Ragdoll.scala
]
-
- class
- Ragdoll(position : Vector2D)
- extends
PrefabValue Summary | |
- override val
- |
- - bodies - : scala.List[Body] - - - | -
- val
- |
- - foot1 - : Body - - - | -
- val
- |
- - foot2 - : Body - - - | -
- val
- |
- - forearm1 - : Body - - - | -
- val
- |
- - forearm2 - : Body - - - | -
- val
- |
- - hand1 - : Body - - - | -
- val
- |
- - hand2 - : Body - - - | -
- val
- |
- - headTorso - : Body - - - | -
- override val
- |
- - joints - : scala.Nil - - - | -
- val
- |
- - shoulder1 - : RevoluteJoint - - - | -
- val
- |
- - shoulder2 - : RevoluteJoint - - - | -
- val
- |
- - thigh1 - : Body - - - | -
- val
- |
- - thigh2 - : Body - - - | -
- val
- |
- - tibia1 - : Body - - - | -
- val
- |
- - tibia2 - : Body - - - | -
- val
- |
- - upperArm1 - : Body - - - | -
- val
- |
- - upperArm2 - : Body - - - | -
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Value Details |
- val
- headTorso : Body
-
- val
- thigh1 : Body
-
- val
- thigh2 : Body
-
- val
- tibia1 : Body
-
- val
- tibia2 : Body
-
- val
- foot1 : Body
-
- val
- foot2 : Body
-
- val
- upperArm1 : Body
-
- val
- upperArm2 : Body
-
- val
- forearm1 : Body
-
- val
- forearm2 : Body
-
- val
- hand1 : Body
-
- val
- hand2 : Body
- override
- val
- bodies : scala.List[Body]
-
- val
- shoulder1 : RevoluteJoint
-
- val
- shoulder2 : RevoluteJoint
- 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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- val
- joints : scala.Nil
-
-
- - - | -
- SiMS
- |
-
Class Summary | |
- case class
- |
-
- Polar
- (val distance : Double, val angle : Double) extends scala.Product
-
- Polar coordinates.
- |
-
- class
- |
-
- RelativeVector
- (val x : Double, val y : Double) extends AnyRef
-
-
- |
-
Object Summary | |
- object
- |
-
- Polar
- extends (Double, Double) => Polar
-
-
- |
-
- object
- |
-
- Positioning
- extends AnyRef
-
- Utility functions for comfortable positioning of bodies.
- |
-
- sims.util - |
- - | -
- SiMS
- |
-
sims/util/Polar.scala
]
-
- object
- Polar
- extends
(Double, Double) => Polar- Methods inherited from scala.Function2 - | |
- scala.Function2.toString, scala.Function2.curry - |
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
- - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/util/Polar.scala
]
- case
- class
- Polar(val
distance : Double, val
angle : Double)
- extends
scala.ProductMethod Summary | |
- override def
- |
-
- equals
- (arg0 : Any) : Boolean
-
- This method is used to compare the receiver object (
- this )
- with the argument object (arg0 ) for equivalence. |
-
- override def
- |
-
- hashCode
- : Int
-
- Returns a hash code value for the object.
- |
-
- override def
- |
- - productArity - : Int - - - | -
- override def
- |
- - productElement - (arg0 : Int) : Any - - - | -
- override def
- |
- - productPrefix - : java.lang.String - - - | -
- def
- |
-
- toCarthesian
- : Vector2D
-
- Returns the vector representation of these polar coordinates.
- |
-
- override def
- |
-
- toString
- : java.lang.String
-
- Returns a string representation of the object.
- |
-
- Methods inherited from AnyRef - | |
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Polar coordinates.
Method Details |
- def
- toCarthesian : Vector2D
- override
- def
- hashCode : Int
-
- 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.
-
override
- def
- toString : java.lang.String
- - The default representation is platform dependent.
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)
).
arg0 -
the object to compare against this object for equality.true
if the receiver object is equivalent to the argument; false
otherwise. override
- def
- productPrefix : java.lang.String
- override
- def
- productArity : Int
- 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.
+
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 vector representation of these polar coordinates
Returns the vector representation of these polar coordinates.
Returns a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
override
- def
- productElement(arg0 : Int) : Any
-
-
- - - | -
- SiMS
- |
-
Utility functions for comfortable positioning of bodies.
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- - | -
- SiMS
- |
-
sims/util/Positioning.scala
]
-
- object
- Positioning
- extends
AnyRefMethod Summary | |
- implicit def
- |
- - double2RelativeVector - (x : Double) : RelativeVector - - - | -
- implicit def
- |
- - int2RelativeVector - (x : Int) : RelativeVector - - - | -
- implicit def
- |
- - polar2Carthesian - (p : Polar) : Vector2D - - - | -
- implicit def
- |
- - polar2RelativeVector - (p : Polar) : RelativeVector - - - | -
- def
- |
- - position - (s : Shape)(a : Vector2D) : Unit - - - | -
- implicit def
- |
- - vector2RelativeVector - (v : Vector2D) : RelativeVector - - - | -
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Method Details |
implicit
- def
- int2RelativeVector(x : Int) : RelativeVector
- implicit
- def
- double2RelativeVector(x : Double) : RelativeVector
- implicit
- def
- vector2RelativeVector(v : Vector2D) : RelativeVector
- implicit
- def
- polar2RelativeVector(p : Polar) : RelativeVector
- - - | -
- SiMS
- |
-
- - | -
- SiMS
- |
-
sims/util/RelativeVector.scala
]
-
- class
- RelativeVector(val
x : Double, val
y : Double)
- extends
AnyRefMethod Summary | |
- def
- |
- - above - (s : Shape) : Vector2D - - - | -
- def
- |
- - above - (point : Vector2D) : Vector2D - - - | -
- def
- |
- - below - (point : Vector2D) : Vector2D - - - | -
- def
- |
- - below - (s : Shape) : Vector2D - - - | -
- def
- |
- - from - (point : Vector2D) : Vector2D - - - | -
- def
- |
- - from - (s : Shape) : Vector2D - - - | -
- def
- |
- - left - (point : Vector2D) : Vector2D - - - | -
- def
- |
- - left - (s : Shape) : Vector2D - - - | -
- def
- |
- - right - (point : Vector2D) : Vector2D - - - | -
- def
- |
- - right - (s : Shape) : Vector2D - - - | -
- Methods inherited from AnyRef - | |
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized - |
- Methods inherited from Any - | |
- ==, !=, isInstanceOf, asInstanceOf - |
Method Details |
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.
+
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 a string representation of the object
Returns a string representation of the object. +
+The default representation is platform dependent. +
- def
- from(s : Shape) : Vector2D
-
-
- - - | -
- SiMS
- |
-
Polar coordinates
+Utility functions for comfortable positioning of bodies
+Detector
. GridDetector
divides the world into a grid
* for faster collision detection.*/
diff --git a/src/sims/collision/PolyCollision.scala b/src/sims/collision/PolyCollision.scala
index b4fa917..5296f41 100644
--- a/src/sims/collision/PolyCollision.scala
+++ b/src/sims/collision/PolyCollision.scala
@@ -9,7 +9,6 @@ package sims.collision
import sims.geometry._
import sims.dynamics._
import scala.collection.mutable.Map
-import scala.collection.mutable._
/**Collision between two convex polygons.*/
case class PolyCollision(p1: ConvexPolygon, p2: ConvexPolygon) extends Collision {
diff --git a/src/sims/dynamics/World.scala b/src/sims/dynamics/World.scala
index 0230a50..f24a3fd 100644
--- a/src/sims/dynamics/World.scala
+++ b/src/sims/dynamics/World.scala
@@ -9,7 +9,7 @@ package sims.dynamics
import sims.geometry._
import sims.collision._
import sims.dynamics.joints._
-import scala.collection.mutable._
+import scala.collection.mutable.ArrayBuffer
/**A world contains and simulates a system of rigid bodies and joints.*/
class World {
@@ -35,7 +35,7 @@ class World {
* Example usage: monitors += ("Y-Position", _.pos.y.toString)
* This will calculate all bodies - whose monitor
field is set to
* true
- second position components.*/
- val monitors = new ArrayBuffer[(String, Body => String)]
+ val monitors = new ArrayBuffer[(String, Body => Any)]
/**Collsion detector who manages collision detection in this world.*/
val detector: Detector = new GridDetector(this)
@@ -65,7 +65,7 @@ class World {
def +=(joint: Joint): Unit = joints += joint
/**Adds the given prefabricated system of bodies and joints to this world.*/
- def +=(p: prefabs.Prefab): Unit = {
+ def +=(p: sims.prefabs.Prefab): Unit = {
for (b <- p.bodies) this += b
for (j <- p.joints) this += j
}
@@ -80,7 +80,7 @@ class World {
def -=(joint: Joint): Unit = joints -= joint
/**Removes the given prefabricated system of bodies and joints from this world.*/
- def -=(p: prefabs.Prefab): Unit = {
+ def -=(p: sims.prefabs.Prefab): Unit = {
for (b <- p.bodies) this -= b
for (j <- p.joints) this -= j
}
@@ -113,12 +113,9 @@ class World {
//integration of acclerations, yields velocities
for (b <- bodies) {
- val m = b.mass
b.applyForce(gravity * b.mass)
- val a = b.force / b.mass
- val alpha = b.torque / b.I
- b.linearVelocity = b.linearVelocity + a * timeStep
- b.angularVelocity = b.angularVelocity + alpha * timeStep
+ b.linearVelocity = b.linearVelocity + (b.force / b.mass) * timeStep
+ b.angularVelocity = b.angularVelocity + (b.torque / b.I) * timeStep
}
//correction of velocities
diff --git a/src/sims/dynamics/joints/DistanceJoint.scala b/src/sims/dynamics/joints/DistanceJoint.scala
index efb49e5..1bf9b46 100644
--- a/src/sims/dynamics/joints/DistanceJoint.scala
+++ b/src/sims/dynamics/joints/DistanceJoint.scala
@@ -6,6 +6,7 @@
package sims.dynamics.joints
+import sims.dynamics._
import sims.geometry._
/** DistanceJoints keep their connection points at a constant distance.
diff --git a/src/sims/dynamics/joints/SpringJoint.scala b/src/sims/dynamics/joints/SpringJoint.scala
index 1267ccf..4d44864 100644
--- a/src/sims/dynamics/joints/SpringJoint.scala
+++ b/src/sims/dynamics/joints/SpringJoint.scala
@@ -6,6 +6,7 @@
package sims.dynamics.joints
+import sims.dynamics._
import sims.geometry._
/**A spring obeying Hooke's law.
diff --git a/src/sims/dynamics/joints/test/PrismaticJoint.scala b/src/sims/dynamics/joints/test/PrismaticJoint.scala
index d4b43b2..040647d 100644
--- a/src/sims/dynamics/joints/test/PrismaticJoint.scala
+++ b/src/sims/dynamics/joints/test/PrismaticJoint.scala
@@ -1,5 +1,7 @@
package sims.dynamics.joints.test
+import sims.dynamics._
+import sims.dynamics.joints._
import sims.geometry._
case class PrismaticJoint(node1: Body, anchor1: Vector2D, node2: Body, anchor2: Vector2D) extends Joint{
diff --git a/src/sims/dynamics/joints/test/UnitCircleJoint.scala b/src/sims/dynamics/joints/test/UnitCircleJoint.scala
index 64f613c..09e72d9 100644
--- a/src/sims/dynamics/joints/test/UnitCircleJoint.scala
+++ b/src/sims/dynamics/joints/test/UnitCircleJoint.scala
@@ -7,6 +7,7 @@
package sims.dynamics.joints.test
import sims.dynamics._
+import sims.dynamics.joints._
import sims.geometry._
class UnitCircleJoint(body: Body, anchor: Vector2D) extends Joint{
--
cgit v1.2.3