File Exchange

image thumbnail

Any 3D rotation

version 2.5 (7.84 KB) by Nicolas Douillet
Performs 3D rotation of a single 2D or 3D vector -or vectors array- around any given 3D axis.

11 Downloads

Updated 29 Jun 2020

View License

Please first check the examples tab (doc) here on the right for a complete description.

Once downloaded, typewrite 'help rotate_3D' or 'doc rotate_3D' in Matlab console for support.

Cite As

Nicolas Douillet (2020). Any 3D rotation (https://www.mathworks.com/matlabcentral/fileexchange/65531-any-3d-rotation), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Hongjia Lu

Hey Nick.
It's pretty rudimentary to rotate a set of coordinate, don't you think?
Not sure this could be protected under copyright laws.

Updates

2.5

Improved help, doc, description.

2.4

+ rotation matrix in outputs, improved input parsing, updated description, help, doc

2.3

Fix bug in Y rotation matrix

2.2

Completed description

2.1

+ angle unit (radian / degree) option
+ vectors array rotation example

2.0

Improved : 2D & 3D versions, inputs parsing, exceptions, add examples, help, doc, tags, typo.

1.7

Improved doc

1.6.9

Test 1.6.9

1.6.8

Test 1.6.8

1.6.7

One more test

1.6.6

Another test

1.6.5

No zip test

1.6.4

Patience...

1.6.3

Once more

1.6.2

Again

1.6.1

Last try [...]

1.6

Changed html file name

1.5.9

New try

1.5.8

Try again to make appear main file in functions section

1.5.7

Add main missing file

1.5.6

Again...

1.5.5

Add missing file again.

1.5.4

Add missing file (...)

1.5.3

Add missing file (ter!)

1.5.2

Add missing file (bis)

1.5.1

Add missing file

1.5

+ html documentation
Rotation axis now optional in case mode corresponds with one of the three basis axis

1.4.0.0

- Updated overview

1.3.0.0

- Switched last two input arguments

1.2.0.0

+ redo sections

1.1.0.0

- fixed null vector exception
- updated to Matlab 9.3 (R2017b) version
- improved documentation
- added illustration

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux