LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-07-2009, 05:02 AM   #1
umbrella2
Member
 
Registered: Nov 2008
Posts: 34

Rep: Reputation: 15
compute free space on the sheet, how?


hello everyone!
I need a suggestion about maps programming with perl.
Well, I did the map engine which must be depict multiply nodes.
I made it by xml rendering, it's part I completely done, but have a question related environs nodes and them neighbors. Actually I divide them on the group's and compute radius for everyone, but radius depend of quantity neighbor nodes connected to the some node.
I've got height & width some sheet by counting whole nodes while compute coordinates for everyone.
Code:
$x = (cos($arc)*$R+$xC);
$y = (sin($arc)*$R+$yC);
$xC += 1;
$yC += 1;
but it's so stupid way so as get it. I need depict nodes and use whole space of my sheet and also group's of nodes should be nearly of them neighbors by group.

i.e. if node A have five neighbors them must be founded on one circle radius distance of them root(A node), and so on for any other nodes.

but how compute free space and grouping nodes(which neighbors of them neighbors) and gave them nearest coordinates.
 
Old 10-07-2009, 10:37 AM   #2
SethsdadtheLinuxer
Member
 
Registered: Jun 2007
Posts: 152

Rep: Reputation: 37
The guys at perlmonks.org or cpan.org can probably provide the best answer for this.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
Help removing free space to create Raw free space nightmare55 Linux - Newbie 11 10-01-2009 03:07 AM
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 08:21 PM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 12:44 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration