square_vector

compas.geometry.square_vector(vector)[source]

Raise a vector to the power 2.

Parameters

vector ([float, float, float] | Vector) – XYZ components of the vector.

Returns

[float, float, float] – The squared vector.

Examples

>>>