Replacing PI_BY_TWO with PI/4
|
|
Petteri Yiyuan
Registered User
Join date: 4 Mar 2007
Posts: 56
|
04-23-2009 01:38
Weapon sensor arch question. If melee weapons has its arch what it hits determined in script with constant PI_BY_TWO (180 degree) can you get 90 degree arch by replacing PI_BY_TWO with operator PI/4
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
04-23-2009 05:44
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Dnali Anabuki
Still Crazy
Join date: 17 Oct 2006
Posts: 1,633
|
04-23-2009 09:02
Thanks Jesse...the Pi stuff has really confused me.
_____________________
The price of apathy is to be ruled by evil men--Plato
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
04-23-2009 10:20
From: Dnali Anabuki Thanks Jesse...the Pi stuff has really confused me. It's a shame but I could not find that graphic in any of the wiki's except for Osgeld's snapshot. Sometimes a picture really is worth a thousand words.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
04-23-2009 12:07
I'm often surprised by how many people don't understand what PI is. It's such a lovely, basic constant. If you measure the circumference of any circle, you'll find that it's ALWAYS PI times the circle's diameter (two times its radius). A radian is just a measure of how far around the circle's circumference you have to go before you've gone a distance equal to the circle's radius. One radian is therefore equal to a circle's circumference divided by (2*PI *r) or, said another way, a circle's circumference is always 2*PI radians times the circle's radius. That lovely constant ratio is what makes radians a more attractive way to express distance around a circle than using degrees. After all, there's nothing magical about having 360 degrees in a full circle. We could have arbitrarily chosen to divide up circles in 500 parts or 1024 parts just as easily as 360. Radians, however, are inviolate. Thus endeth the geometry lesson. Selah. 
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....  Look for my work in XStreetSL at 
|
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
04-23-2009 13:23
Oh, and on a silly note ..... I can't ever seem to remember the numerical value of PI past 3.1416 until I recite the sentence, "How I wish I could recollect Pi easily today." Counting letters gets me another four significant figures, which is more than most non-mathematicians need to get out of Pi. 
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....  Look for my work in XStreetSL at 
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
04-23-2009 14:06
Well, there are 2 pi radians in a circle, so if you bake one circular pie you actually get TWO pis (one for free?). That help? 
|
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
04-23-2009 14:45
From: Rolig Loon Oh, and on a silly note ..... I can't ever seem to remember the numerical value of PI past 3.1416 until I recite the sentence, "How I wish I could recollect Pi easily today." Counting letters gets me another four significant figures, which is more than most non-mathematicians need to get out of Pi.  The beauty with Pi is that you don't need it's digits. We have machines for replacing the name with the constant 
_____________________
From Studio Dora
|
|
Petteri Yiyuan
Registered User
Join date: 4 Mar 2007
Posts: 56
|
04-23-2009 23:27
From: Hewee Zetkin Well, there are 2 pi radians in a circle, so if you bake one circular pie you actually get TWO pis (one for free?). That help?  Oh yes that is really well said and even i can undertand it now 
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
04-24-2009 07:33
and then you have to remember that conic arcs are measured from the center not the edge. so it's degrees (or radians) in ANY direction from straight forward. essentially meaning twice whatever you fed it. (the reason for this is to have an easier way to define the center line, else it'd have to half the arc you feed it to get a mathematically easy to use facing)
ETA: 3.141592653 (32bit float, I have it memorized)
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
CarlCorey Colman
Fnord
Join date: 15 Dec 2006
Posts: 177
|
04-26-2009 13:23
From: Rolig Loon That lovely constant ratio is what makes radians a more attractive way to express distance around a circle than using degrees. After all, there's nothing magical about having 360 degrees in a full circle. We could have arbitrarily chosen to divide up circles in 500 parts or 1024 parts just as easily as 360. Radians, however, are inviolate. I share your passion for PI along with other magical constants like e, i, 1 and 0. But 360 is actually a fairly good choice for dividing up a circle since it has SO many divisors: 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180 and 360. 24 of them making it pretty easy to talk about some very important angles using integers. However, you need PI to realize that if you have a pizza of radius z and thickness a, the volume of that pizza is PI*z*z*a 
_____________________
Reality leaves a lot to the imagination. John Lennon
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
04-26-2009 18:05
I always wondered where 360 came from...
(I play with prime numbers too, the first program I write in any new language is an optimized sieve for primes of 11-13 digits or less... when I'm more into the language I try to a rewite as high as I can go, or 2-3 times my original (it gets slow above that with deterministic algorithms)
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|