Converted Point2f to Scala.