So, I was working on a shader network today and needed to get the quadrant of an angle in a simple fashion. In most cases people will use a switch statement or an if, else tree. I wanted to do it using fewer steps, so I started to look at it a different way:
Archive for June 19, 2012
Getting Trig Quadrant from Sine and Cosine with only 2 IF statements
Category: Math & Science, Tips and Tricks |
Tags: Find, Finding, Node, Node-Tree, Quadrant, Tree, Trig, Trigonometry