I have now created a new Github repository with POV-Ray macros that I think is
useful.
https://github.com/t-o-k/Useful-POV-Ray-macros
The vectors.inc file contains these vector related macros:
ScalarTripleProduct()
VectorTripleProduct()
VectorCos()
VectorSin()
AngleBetweenVectors() <-- VAngle() in math.inc
AccurateAngleBetweenVectors()
ScalarProject()
VectorProject() <-- VProject_Axis() in math.inc
ScalarReject()
VectorReject() <-- VProject_Plane() in math.inc
OrthogonalVector() <-- VPerp_To_Vector() in math.inc
AltOrthogonalVector()
VectorAxisRotate() <-- Built in vaxis_rotate()
VectorReorient()
VectorTransform() <-- vtransform() in vtransforms.inc
VectorInverseTransform() <-- vinv_transform() in vtransforms.inc
MatrixTransform() <-- Matrix_Trans() in transforms.inc
AxisRotateTransform() <-- Axis_Rotate_Trans() in transforms.inc
ReorientTransform() <-- Reorient_Trans() in transforms.inc
At the moment the macros are made for POV-Ray v3.7,
but they should also work in v3.8.
There are links to relevant Wikipedia articles in the file.
--
Tor Olav
http://subcube.com
https://github.com/t-o-k
Post a reply to this message
|