summaryrefslogtreecommitdiff
path: root/test/files/run/Course-2002-06.scala
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2006-10-08 09:07:41 +0000
committermihaylov <mihaylov@epfl.ch>2006-10-08 09:07:41 +0000
commit6a20eed594c346790b6da5da4be243dd581927d3 (patch)
treef6656dd3bdf452428b44b2b5f663b51d23fb3b93 /test/files/run/Course-2002-06.scala
parent42dc44dd5235cbe30bc52dcaa360bdccb50b87cd (diff)
downloadscala-6a20eed594c346790b6da5da4be243dd581927d3.tar.gz
scala-6a20eed594c346790b6da5da4be243dd581927d3.tar.bz2
scala-6a20eed594c346790b6da5da4be243dd581927d3.zip
Moved scala.runtime.compat to scala.compat
Diffstat (limited to 'test/files/run/Course-2002-06.scala')
-rw-r--r--test/files/run/Course-2002-06.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/Course-2002-06.scala b/test/files/run/Course-2002-06.scala
index df73daa08f..47851988c0 100644
--- a/test/files/run/Course-2002-06.scala
+++ b/test/files/run/Course-2002-06.scala
@@ -11,7 +11,7 @@ class Vector (_x: Double, _y: Double) {
def *(scalar: Double): Vector = new Vector(x * scalar, y * scalar);
def -(that: Vector): Vector = new Vector(x - that.x, y - that.y);
def /(scalar: Double): Vector = new Vector(x / scalar, y / scalar);
- def norm: Double = scala.runtime.compat.Math.sqrt(x * x + y * y);
+ def norm: Double = compat.Math.sqrt(x * x + y * y);
}
//############################################################################
@@ -88,7 +88,7 @@ class PostScript (filename: String, _width: Double, _height: Double)
def mm2ps(x: Double) : Double = round(x * 72.0 / 25.4);
def round(x: Double): Double =
- scala.runtime.compat.Math.floor(x * 100.0 + 0.5) / 100.0;
+ compat.Math.floor(x * 100.0 + 0.5) / 100.0;
def scaleAndCenter(frm: Frame, ratio:Double): Frame = {
val currentRatio = frm.edgeX.norm / frm.edgeY.norm;