diff options
author | Jakob Odersky <jodersky@gmail.com> | 2009-11-29 16:15:03 +0000 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2009-11-29 16:15:03 +0000 |
commit | be2ee4dea92c5a4fc2329959d6e7272c50b221a6 (patch) | |
tree | b2c98b44cbf732e6374d523cc397fa118457d4eb /src/sims/collision/AABB.scala | |
parent | 5031df4b26afd515274b5ca34f0d5380a99e4223 (diff) | |
download | sims-be2ee4dea92c5a4fc2329959d6e7272c50b221a6.tar.gz sims-be2ee4dea92c5a4fc2329959d6e7272c50b221a6.tar.bz2 sims-be2ee4dea92c5a4fc2329959d6e7272c50b221a6.zip |
Translated comments to english.
Diffstat (limited to 'src/sims/collision/AABB.scala')
-rw-r--r-- | src/sims/collision/AABB.scala | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/sims/collision/AABB.scala b/src/sims/collision/AABB.scala index 51b3e12..ea696f2 100644 --- a/src/sims/collision/AABB.scala +++ b/src/sims/collision/AABB.scala @@ -9,18 +9,17 @@ package sims.collision import geometry._ /** - * Axis Aligned Bounding Boxes, kurz AABBs, sind Rechtecke die eine bestimmte Form umhuellen. - * Da AABBs nach den X- und Y-Achsen orientiert sind, ermoeglichen sie eine schnelle - * und einfache Feststellung ob zwei AABBs sich ueberschneiden. - * @param minVertex Ortsvektor der minimalen Ecke des AABBs - * @param maxVertex Ortsvektor der maximalen Ecke des AABBs + * 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. + * @param minVertex Position vector of the bottom-left vertex + * @param maxVertex Position vector of the upper-right vertex */ case class AABB(val minVertex: Vector2D, val maxVertex: Vector2D) { /** - * Ueberprueft ob dieses AABB sich mit dem AABB <code>box</code> ueberschneidet. - * @param box das mit diesem auf Ueberschneidung zu ueberpruefende AABB*/ + * Checks this AABB with <code>box</code> for overlap. + * @param box AABB with which to check for overlap*/ def overlaps(box: AABB): Boolean = { val d1 = box.minVertex - maxVertex val d2 = minVertex - box.maxVertex |