Vector.Xaxis
- classmethod Vector.Xaxis()[source]
Construct a unit vector along the X axis.
- Returns:
compas.geometry.Vector
A vector with components
x = 1.0, y = 0.0, z = 0.0
.
Examples
>>> Vector.Xaxis() == [1, 0, 0] True
Site Navigation
Construct a unit vector along the X axis.
compas.geometry.Vector
A vector with components x = 1.0, y = 0.0, z = 0.0
.
Examples
>>> Vector.Xaxis() == [1, 0, 0]
True