0

I am trying to use this case class by inputting ProgressiveMorph(1.0,2.0,3.0) but I am getting back error that m is not a double.

How can I go about solving this?

case class ProgressiveMorph(curve1: Double, curve2: Double, m: Double => Double) extends Double
  • 1
    `Double => Double` is just a function taking one Double argument and returning a Double. There is one thing wrong with this code though - you can't extend Double. – Ava Apr 18 '22 at 12:03

0 Answers0