OrthonormalVectorsFromAxisGenerator
- class compas_fab.robots.OrthonormalVectorsFromAxisGenerator[source]
Bases:
object
Generate vectors that are orthonormal to an axis.
- Parameters:
- axis
compas.geometry.Vector
The axis to which the vectors should be orthonormal to.
- angle_stepfloat
The angle in radians as the spacing between generated vectors.
- axis
- Yields:
compas.geometry.Vector
The orthonormal vector.
Examples
>>> generator = OrthonormalVectorsFromAxisGenerator((0, 0, 1), math.radians(120)) >>> [print(xaxis) for xaxis in generator] Vector(x=0.000, y=-1.000, z=0.000) Vector(x=0.866, y=0.500, z=0.000) Vector(x=-0.866, y=0.500, z=0.000) [None, None, None]