[ https://issues.apache.org/jira/browse/GEOMETRY9?page=com.atlassian.jira.plugin.system.issuetabpanels:alltabpanel
]
Matt Juntunen updated GEOMETRY9:

Description:
We should add some more methods to the Euclidean vector classes for user convenience and algorithm
clarity.
# length() – more intuitive alias for getNorm()
# project(Vector) – returns the current vector projected onto the given vector
# static project(Vector, Vector) – static version of project
# reject(Vector) – returns the current vector projected onto the plane whose normal is
passed to the method (vec equals vec.project(v) + vec.reject(v))
# static reject(Vector, Vector) – static version of reject
# lerp(Vector, double) – linear interpolation between the current vector and the given
one
# static lerp(Vector, Vector, double) – static version of lerp
# withLength(double) – returns the current vector with the given length. This is equivalent
to vector.normalize().scalarMultiply(x) but without the intermediate vector.
Pull request: [https://github.com/apache/commonsgeometry/pull/8]
was:
We should add some more methods to the Euclidean vector classes for user convenience and algorithm
clarity.
# length() – more intuitive alias for getNorm()
# project(Vector) – returns the current vector projected onto the given vector
# static project(Vector, Vector) – static version of project
# reject(Vector) – returns the current vector projected onto the plane whose normal is
passed to the method (vec equals vec.project(v) + vec.reject(v))
# static reject(Vector, Vector) – static version of reject
# lerp(Vector, double) – linear interpolation between the current vector and the given
one
# static lerp(Vector, Vector, double) – static version of lerp
# withLength(double) – returns the current vector with the given length. This is equivalent
to vector.normalize().scalarMultiply(x) but without the intermediate vector.
> New Euclidean Vector Methods
> 
>
> Key: GEOMETRY9
> URL: https://issues.apache.org/jira/browse/GEOMETRY9
> Project: Apache Commons Geometry
> Issue Type: Wish
> Reporter: Matt Juntunen
> Priority: Minor
>
> We should add some more methods to the Euclidean vector classes for user convenience
and algorithm clarity.
> # length() – more intuitive alias for getNorm()
> # project(Vector) – returns the current vector projected onto the given vector
> # static project(Vector, Vector) – static version of project
> # reject(Vector) – returns the current vector projected onto the plane whose normal
is passed to the method (vec equals vec.project(v) + vec.reject(v))
> # static reject(Vector, Vector) – static version of reject
> # lerp(Vector, double) – linear interpolation between the current vector and the given
one
> # static lerp(Vector, Vector, double) – static version of lerp
> # withLength(double) – returns the current vector with the given length. This is equivalent
to vector.normalize().scalarMultiply(x) but without the intermediate vector.
>
> Pull request: [https://github.com/apache/commonsgeometry/pull/8]

This message was sent by Atlassian JIRA
(v7.6.3#76005)
