[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (ef3f88d72a786cc1fe2f2d5f23b386076a348229)
The branch, master has been updated
via ef3f88d72a786cc1fe2f2d5f23b386076a348229 (commit)
from f69572aeddb7babf7e04936463c95888dc1954e5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
src/toporouter.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
=================
Commit Messages
=================
commit ef3f88d72a786cc1fe2f2d5f23b386076a348229
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
src/toporouter.c: Tidy up escape() routine
Changes are aimed to simplify the delta of a future patch relating
to object storage. Moves indexed addressing of object structures to
fewer places.
:100644 100644 3590472... 74459f4... M src/toporouter.c
=========
Changes
=========
commit ef3f88d72a786cc1fe2f2d5f23b386076a348229
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
src/toporouter.c: Tidy up escape() routine
Changes are aimed to simplify the delta of a future patch relating
to object storage. Moves indexed addressing of object structures to
fewer places.
diff --git a/src/toporouter.c b/src/toporouter.c
index 3590472..74459f4 100644
--- a/src/toporouter.c
+++ b/src/toporouter.c
@@ -7987,8 +7987,11 @@ escape (int argc, char **argv, int x, int y)
PinTypePtr via;
LineTypePtr line;
- pitch = sqrt( pow(abs(element->Pad[0].Point1.X - element->Pad[1].Point1.X), 2) +
- pow(abs(element->Pad[0].Point1.Y - element->Pad[1].Point1.Y), 2) );
+ PadType *pad0 = &element->Pad[0];
+ PadType *pad1 = &element->Pad[1];
+
+ pitch = sqrt (pow (abs (pad0->Point1.X - pad1->Point1.X), 2) +
+ pow (abs (pad0->Point1.Y - pad1->Point1.Y), 2) );
length = sqrt(pow(pitch,2) + pow(pitch,2)) / 2.;
dx = length * sin(M_PI/4.);
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs