471,066 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 software developers and data experts.

How to enlarge a 2D polygon (conex, nonconvex)

I am looking for an algorithm that enlarge a 2D polygon.
cheers,
Nov 13 '05 #1
2 3009
as*****@hotmail.com news:5b*************************@posting.google.co m
I am looking for an algorithm that enlarge a 2D polygon.
cheers,


Is polygon is a set of 2D points, how about multiplying all of them by some
value ?

x[i] *= zoom;
y[i] *= zoom;
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~l-.~~~~~~~~~~~~~~~~~~~
GG-1175498 ____| ]____,
Rafal 'Raf256' Maj X-( * )
Rafal(at)Raf256(dot)com ,"----------"
Nov 13 '05 #2
yes the polygon is a set of 2D points;
No this will not work. by multiplying we are just moving the polygon.

"Rafal 'Raf256' Maj" <sp**@raf256.com> wrote in message news:<Xn**********************@213.180.128.20>...
as*****@hotmail.com news:5b*************************@posting.google.co m
I am looking for an algorithm that enlarge a 2D polygon.
cheers,


Is polygon is a set of 2D points, how about multiplying all of them by some
value ?

x[i] *= zoom;
y[i] *= zoom;

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by lars.gundersen | last post: by
BSOB
6 posts views Thread by BSOB | last post: by
reply views Thread by =?Utf-8?B?U2ViYXN0aWFuIEZyw6Ruaw==?= | last post: by
8 posts views Thread by jpatchak | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.