diff options
author | michelou <michelou@epfl.ch> | 2007-08-17 14:22:22 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-08-17 14:22:22 +0000 |
commit | b47ed354cf13fa9b1607d6c638224782d111fc5c (patch) | |
tree | f927bd51b110143e96c0c554f9bcec160006c099 /test/files/run/Course-2002-06.scala | |
parent | 300caee15c263c956ebf8f428fc827109ebfc9d8 (diff) | |
download | scala-b47ed354cf13fa9b1607d6c638224782d111fc5c.tar.gz scala-b47ed354cf13fa9b1607d6c638224782d111fc5c.tar.bz2 scala-b47ed354cf13fa9b1607d6c638224782d111fc5c.zip |
updated several tests for MSIL
Diffstat (limited to 'test/files/run/Course-2002-06.scala')
-rw-r--r-- | test/files/run/Course-2002-06.scala | 4 |
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 47851988c0..e2cfb6daf4 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 = compat.Math.sqrt(x * x + y * y); + def norm: Double = 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 = - compat.Math.floor(x * 100.0 + 0.5) / 100.0; + Math.floor(x * 100.0 + 0.5) / 100.0; def scaleAndCenter(frm: Frame, ratio:Double): Frame = { val currentRatio = frm.edgeX.norm / frm.edgeY.norm; |