You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Juntunen (JIRA)" <ji...@apache.org> on 2019/02/05 02:39:00 UTC
[jira] [Created] (GEOMETRY-42) Vector2D signedArea() Method
Matt Juntunen created GEOMETRY-42:
-------------------------------------
Summary: Vector2D signedArea() Method
Key: GEOMETRY-42
URL: https://issues.apache.org/jira/browse/GEOMETRY-42
Project: Apache Commons Geometry
Issue Type: New Feature
Reporter: Matt Juntunen
We should add the following method to {{Vector2D}}:
{code:java}
public double signedArea(Vector2D v) { /* */ }
{code}
This method will return the signed area of the parallelogram formed by taking the current instance and the given vector as sides.
This method should replace the existing {{cross}} method in {{Vector2D}} since it performs a similar operation and the cross product is not defined in 2 dimensions.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)