[ https://issues.apache.org/jira/browse/GEOMETRY-150 ]
Dimitrios Efthymiou deleted comment on GEOMETRY-150:
----------------------------------------------
was (Author: JIRAUSER301169):
[~erans] unless I miss something, 2 vectors u, v are codirectional if v = au
for a being a real number.
If the dot product of 2 vectors is 1 it just means that they are parallel. It
doesn't tell you the direction
of the vector. You can either use the angle between the vectors and make sure
it is 2πk for
k being a real number. Or you can use my way which I think is much faster than
calculating
the angle
> implement isCodirectionalTo(Vector y)
> -------------------------------------
>
> Key: GEOMETRY-150
> URL: https://issues.apache.org/jira/browse/GEOMETRY-150
> Project: Commons Geometry
> Issue Type: New Feature
> Components: euclidean1D
> Reporter: Dimitrios Efthymiou
> Priority: Minor
> Labels: features
> Fix For: 1.1
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> implement isCodirectionalTo(Vector y) method in the Vector interface. The
> isCodirectionalTo() checks if the 2 vectors point at the same direction. This
> means that each vector can be obtained from the other by multiplying by a
> positive scalar.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)