power_vector

compas.geometry.power_vector(vector, power)[source]

Raise a vector to the given power.

Parameters:
vector[float, float, float] | compas.geometry.Vector

XYZ components of the vector.

powerint, float

The power to which to raise the vector.

Returns:
[float, float, float]

The raised vector.

Examples

>>>