vectorrectprojection#

ens_calculator.vectorrectprojection(source_parts: List[ENS_PART] | List[int] | List[str], vector_to_project: ENS_VAR | str | int, frame_number: int, which_axis: int = 0, output_varname: str | None = None) ENS_VAR#

Computes a vector variable defined as the specified vector variable projected onto a frame’s x, y, or z direction

Args:
source_parts:

Any part(s) or a part number.

vector_to_project:

A vector variable.

frame_number:

A constant variable name or a constant value.

which_axis:

Select the rectangular axis to compute.

output_varname:

The name of the newly created variable

Returns:

New ENS_VAR instance or None

Note:

See VectorRectProjection() for function details.