Vector.Xaxis

classmethod Vector.Xaxis()

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()
Vector(1.000, 0.000, 0.000)