square_vector

compas.geometry.square_vector(vector)[source]

Raise a vector to the power 2.

Parameters

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

Returns

vector (list) – The squared vector.

Examples

>>>