Solved

drawing polygon with 9 vertices and 6 vertices

Posted on 2002-04-13
3
951 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
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.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

808 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