Skip to content

Application.scala has an error in it's triangle area implementation #2

@BBischof

Description

@BBischof
val area = 0.5 * abs(
            (next._1 - previous._1) * (current._2 - previous._2) -
              (current._1 - previous._1) * (next._2 - previous._1)
          )

the final term should be previous_2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions