POV-Ray : Newsgroups : povray.general : Github repository with useful macros : Github repository with useful macros Server Time
24 Apr 2024 21:33:34 EDT (-0400)
  Github repository with useful macros  
From: Tor Olav Kristensen
Date: 16 May 2021 12:15:00
Message: <web.60a143e3bfdf59778e52cc8789db30a9@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.