project_vectors#

CoordinateSystemArray.project_vectors(vectors)[source]#

Project vectors on the coordinate system.

Parameters:
vectorsVectorArrayLike

If a single vector is passed, project it into each coordinate system.

Returns:
Vector

The projected vectors.

Examples

>>> v1 = ap.Vector(1, 1, 0)
>>> v2 = ap.Vector(1, 0, 1)
>>> c = ap.CoordinateSystemArray((v1, v2), (v2, v1))
>>> c.project_vectors(v1)
VectorArray([[0.         0.         1.41421356]
             [1.22474487 0.         0.70710678]])
>>> c.project_vectors(v2)
VectorArray([[1.22474487 0.         0.70710678]
             [0.         0.         1.41421356]])
>>> c.project_vectors((v1, v2))
VectorArray([[0.         0.         1.41421356]
             [0.         0.         1.41421356]])