power_vector

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

Raise a vector to the given power.

Parameters
  • vector (list, tuple) – XYZ components of the vector.

  • power (int, float) – The power to which to raise the vector.

Returns

vector (list) – The raised vector.

Examples

>>>