A
AsusUltra
Hey, im a newby C++ programmer trying to create a function that will
draw a Polygonal shape on a Windows Form:
Void DrawRegPoly(int numSides, Point CenterCoord, double radius)
{
//I dont know what to do here!
}
I'm trying to make this function as flexible as possible, if theres 8
sides, and the center coordinate is (10,10), and the radius is 2, then
the hexagon shape:
__
/ \
| * | // the 8 vertices should be 2 from the
center coord, with 8 sides
\__/ /* should expand (side lengths) and be in
different location if args set at:
numSides=8, CenterCoord(60,60),
radius =60
should be diff shape if numSides = 10 or 20
or 60 */
yeah..i donk know much about GDI+ but this would help a lot in the
program im writin..
draw a Polygonal shape on a Windows Form:
Void DrawRegPoly(int numSides, Point CenterCoord, double radius)
{
//I dont know what to do here!
}
I'm trying to make this function as flexible as possible, if theres 8
sides, and the center coordinate is (10,10), and the radius is 2, then
the hexagon shape:
__
/ \
| * | // the 8 vertices should be 2 from the
center coord, with 8 sides
\__/ /* should expand (side lengths) and be in
different location if args set at:
numSides=8, CenterCoord(60,60),
radius =60
should be diff shape if numSides = 10 or 20
or 60 */
yeah..i donk know much about GDI+ but this would help a lot in the
program im writin..