Advertisement

Square-Based Pyramid Volume

Started by February 20, 2003 08:31 AM
11 comments, last by Lektrix 22 years ago
Oh, thank you very much. I was unaware of that. I shall search on Google for a conversion rate.

[ Google || Start Here || ACCU || MSDN || STL || GameCoding || BarrysWorld || E-Mail Me ]
[ Google || Start Here || ACCU || STL || Boost || MSDN || GotW || CUJ || MSVC++ Library Fixes || BarrysWorld || [email=lektrix@barrysworld.com]E-Mail Me[/email] ]
quote:
Original post by Lektrix
Oh, thank you very much. I was unaware of that. I shall search on Google for a conversion rate.



Conversion is simple. Since there are 2*PI radians in 360 degrees, or PI radians in 180 degrees:

radians = degrees * PI/180

PI = 3.14159265 of course,

or

PI = 4.*atan(1.)

I''d actually use a precalculated factor:

DEG_TO_RAD = 4.*atan(1.)/180.

then

radian = degrees * DEG_TO_RAD


Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.
Graham Rhodes Moderator, Math & Physics forum @ gamedev.net
Advertisement
The surface area should include the base of the pyramid. Saying it doesn''t count towards the surface area is like saying the lenght of the base of a square doesn''t count towards it perimeter. Check with your teacher to see exactly what he wants.

Also, the best way to solve this type of problem is by calculus. I know that it''s not on the GCSE syllabus but it you bug your teacher I''m sure they''ll show you what to do ( i did a similar problem for GCSE, finding the maximum volume of a cube from a given rectangle of paper, showing the basics of calculus will get you that ellusive A* on the course work mark!!!)

This topic is closed to new replies.

Advertisement