CadQuery / CadQuery/cadquery

Please consider adding rotateX, rotateY and rotateZ methods to the cq.Vector Class

Open
#789 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.8k
Forks
541
Avg merge
3d 2h
Merged PRs (30d)
5

Description

Being able to do vector transformations is a basic generic capability. Possibly something like the following:
```python
def rotateX(self, angle: float):
return cq.Matrix().rotateX(angle).multiply(self)

def rotateY(self, angle: float):
return cq.Matrix().rotateY(angle).multiply(self)

def rotateZ(self, angle: float):
return cq.Matrix().rotateZ(angle).multiply(self)
```
Note that cq.Matrix() rotate methods (on master) assume the provided angle is in radians not degrees like the other cadquery methods.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.