pyvista.Transform.apply_to_vectors#
- Transform.apply_to_vectors( ) NumpyArray[float][source]#
Apply the current transformation
matrixto a vector or vectors.This is equivalent to
apply(vectors, 'vectors'). Seeapply()for details and examples.- Parameters:
- vectors
VectorLike[float] |MatrixLike[float] Single vector or
Nx3vectors array to apply the transformation to.- inversebool, default:
False Apply the transformation using the
inverse_matrixinstead of thematrix.- copybool, default:
True Return a copy of the input with the transformation applied. Set this to
Falseto transform the input directly and return it. Only applies to NumPy arrays. A copy is always returned for tuple and list inputs or point arrays with integers.
- vectors
- Returns:
np.ndarrayTransformed vectors.
See also
applyApply this transformation to any input.
apply_to_pointsApply this transformation to points.
apply_to_datasetApply this transformation to a dataset.
apply_to_actorApply this transformation to an actor.