Custom pixel version of (sysVectorPolarOffset ...)
Posted: Wed Sep 03, 2014 3:30 pm
Want a function that works like (sysVectorPolarOffset center angle radius), but uses pixels instead of range for radius? Try this function below! Copy-and-paste it to within the <Globals> of your mod, or wherever your code can access it.
Code: Select all
(setq ex912VectorPolarPixelOffset (lambda (theCenter theAngle thePixels)
; range 1 = 24 pixels.
(sysVectorAdd
theCenter
(sysVectorDivide
(sysVectorSubtract
(sysVectorPolarOffset theCenter theAngle thePixels)
theCenter
)
24
)
)
))