Solved

drawing polygon with 9 vertices and 6 vertices

Posted on 2002-04-13
3
949 Views
Last Modified: 2013-12-26
how can I draw a polygon with radius 10 and 9 vertices?
same thing for 6 vertices?

also what is the name of such polygons?
0
Comment
Question by:slok
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
joachimc earned 100 total points
ID: 6941208
Hmm doesn't this look like a school question ?

You can use a triangle fan with a center point and 8 vertices around it.

The angle between points are 2PI/8

/Joachim
0
 
LVL 3

Author Comment

by:slok
ID: 6941312
yes, this is related to school question.

my main probelm is at the angle. I have not touch maths for
like 12 years. the use of PI reminds me of radians (spelling?)
and degrees. I went back to library to read up on the diff.
between them. It helps.

Thanks
0
 
LVL 4

Expert Comment

by:joachimc
ID: 6941335
You are right. D3D normally uses radians instead of the normal 360 degree system, so that's why I used it.

/Joachim
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now