fitcurve.cpp File Reference

(r1785/r1282)

#include "camtypes.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "fitcurve.h"
#include "pathtrap.h"

Go to the source code of this file.

Defines

#define STEP_SIZE   6
#define ERROR_STEP   6
#define new   CAM_DEBUG_NEW

Functions

 DECLARE_SOURCE ("$Revision: 1282 $")
FitPoint operator+ (const FitPoint &Point1, const FitPoint &Point2)
 Adds two FitPoint vectors together. This function is a Friend of the FitPoint class.
FitPoint operator- (const FitPoint &Point1, const FitPoint &Point2)
 Subtracts the two FitPoint vectors. This function is a Friend of the FitPoint class.


Define Documentation

#define ERROR_STEP   6
 

Definition at line 119 of file fitcurve.cpp.

#define new   CAM_DEBUG_NEW
 

Definition at line 125 of file fitcurve.cpp.

#define STEP_SIZE   6
 

Definition at line 118 of file fitcurve.cpp.


Function Documentation

DECLARE_SOURCE "$Revision: 1282 $"   ) 
 

FitPoint operator+ const FitPoint Point1,
const FitPoint Point2
 

Adds two FitPoint vectors together. This function is a Friend of the FitPoint class.

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
02/03/94
Parameters:
Point1 - The first FitPoint Vector [INPUTS] Point2 - The Second FitPoint vector
Returns:
FitPoint - the FitPoint vector that is a combination of Point1 and Point2

Definition at line 222 of file fitcurve.cpp.

00223 {
00224     FitPoint Result;
00225 
00226     // Add the two vector together
00227     Result.x = Point1.x + Point2.x;
00228     Result.y = Point1.y + Point2.y;
00229 
00230     // return the result
00231     return Result;
00232 }

FitPoint operator- const FitPoint Point1,
const FitPoint Point2
 

Subtracts the two FitPoint vectors. This function is a Friend of the FitPoint class.

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
02/03/94
Parameters:
Point1 - The first FitPoint Vector [INPUTS] Point2 - The Second FitPoint vector
Returns:
FitPoint - the FitPoint vector that is the first vector minus the second vector

Definition at line 250 of file fitcurve.cpp.

00251 {
00252     FitPoint Result;
00253 
00254     // Subtract the two vector from each other
00255     Result.x = Point1.x - Point2.x;
00256     Result.y = Point1.y - Point2.y;
00257 
00258     // return the result
00259     return Result;
00260 }


Generated on Sat Nov 10 03:49:09 2007 for Camelot by  doxygen 1.4.4