pcb 4.1.1
An interactive printed circuit board layout editor.

line.h File Reference

Prototypes for inserting points into objects. More...

#include "global.h"
Include dependency graph for line.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void AdjustAttachedLine (void)
 Adjust the attached line to 45 degrees if necessary.
void AdjustTwoLine (bool)
 Adjusts the insert lines to make them 45 degrees as necessary.
void FortyFiveLine (AttachedLineType *)
 Makes the attached line fit into a 45 degree direction.
void EnforceLineDRC (void)

Detailed Description

Prototypes for inserting points into objects.


Copyright.


PCB, interactive printed circuit board design

Copyright (C) 1994,1995,1996 Thomas Nau

Copyright (C) 2004 harry eaton

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Contact addresses for paper mail and Email: Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany Thomas.Nau@rz.uni-ulm.de

Definition in file line.h.


Function Documentation

void AdjustAttachedLine ( void  )
void FortyFiveLine ( AttachedLineType Line)

Makes the attached line fit into a 45 degree direction.

Directions:

           4
          5 3
         6   2
          7 1
           0

Definition at line 100 of file line.c.

References abs, Crosshair, m, MAX, max, MIN, min, AttachedLineType::Point1, AttachedLineType::Point2, TAN_30_DEGREE, TAN_60_DEGREE, PointType::X, CrosshairType::X, PointType::Y, and CrosshairType::Y.

Referenced by AdjustAttachedLine(), and AdjustInsertPoint().