ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Know a Little Math? (Sdk)
Know a Little Math? // SdkpercipientJan 22, 2003, 6:29pm
I am in need of two formulae. One to convert the directional light
source's x, y, z vector into spherical (azimuth and elevation) numbers. The other formula is the reverse. My math skills are a bit... lacking, so could you please give me step-by-step instructions, preferably. Thanks. I'm using C++, if someone has a code snippet to share. I could also probably read a snippet in other programming languages as well, if need be. Thank you for your help, Percipient. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 01/10/2003 |