Added the class Scalar.master
commitfe83e652ffd2a05d6810c3cbf163718e2fbc5a27
authorHanno Braun <hanno@habraun.net>
Mon, 27 Jul 2009 20:07:12 +0000 (27 22:07 +0200)
committerHanno Braun <hanno@habraun.net>
Mon, 27 Jul 2009 20:07:12 +0000 (27 22:07 +0200)
treee4681cf8a85f7a4b6030f1f1d84ad272a7becc19
parent0f21e2c9ab320c96c97a7f2b5adaccd0e998ad9d
Added the class Scalar.

Int and Double values can be implicitely converted to Scalar. This makes it possible to write code like "2 * vector". Up until now, this would have to
be written as "vector * 2".
src/net/habraun/sd/math/Scalar.scala [new file with mode: 0644]
test/net/habraun/sd/math/ScalarTest.scala [new file with mode: 0644]