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
>>>
Raise a vector to the power 2.
vector (list, tuple) – XYZ components of the vector.
vector (list) – The squared vector.
Examples
>>>
A computational framework for collaboration and research in Architecture, Engineering, Fabrication, and Construction.
Copyright © 2017-2021 compas-dev