| 09-21-2008, 03:24 PM | #1 |
How would I calculate the following shapes? - triangle. - rectangle. - parallelogram. - pentagram. |
| 09-21-2008, 03:59 PM | #2 |
If calculate means find the co-ordinates of the vertices; offset by angle from vertex to vertex. |
| 09-21-2008, 04:24 PM | #3 |
You might want to be a little more specific, Vestras. How do you want to use the shapes? |
| 09-21-2008, 04:26 PM | #4 |
I want to create a shape with lines of special effects, like: Code:
.
. .
. . . . |
| 09-21-2008, 04:38 PM | #5 |
If you're referring to making that shape around a particular point, you would simply take the point and calculate the offset at varying units of pi (WC3 takes radians in all of its functions. So a triangle would be the distance (depending on how big you want the shape) at the offsets: pi/2, 5pi/4, and 7pi/4 http://i174.photobucket.com/albums/w...9/circle-1.gif Each of those forms a triangle, then you would connect each of them once you find their points (locations or x/y values, the latter would be better I think) |
| 09-21-2008, 04:56 PM | #6 |
What? |
| 09-21-2008, 04:59 PM | #7 |
|
| 09-22-2008, 04:53 AM | #8 |
Triangle: polar offset; X distance (120 deg, 240 deg, 0 deg) Rectangle: normal offset (cartesian); P(length/2, height/2), Q(length/2, -height/2), R(-length/2, -height/2), S(-length/2, height/2) Parallelogram:polar offset; X distance (angle A, angle A + 180), Y distance (angle A + 90, angle A - 90) Pentagram: polar offset; X distance (72 deg, 144 deg, 216 deg, 288 deg, 0 deg) Descriptive enough? |
| 09-22-2008, 09:58 AM | #9 |
You can use vector inequalities if you want, but im not sure if they are supported |
