Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

data.cpp File Reference

#include "stdafx.h"
#include "math.h"
#include "data.h"

Go to the source code of this file.

Functions

gradient_t operator * (gradient_t g, float s)
gradient_t operator+ (gradient_t g1, gradient_t g2)


Function Documentation

gradient_t operator * gradient_t    g,
float    s
 

Definition at line 5 of file data.cpp.

References gradient_t::x, gradient_t::y, and gradient_t::z.

00006 {
00007         gradient_t res;
00008         res.x = g.x * s;
00009         res.y = g.y * s;
00010         res.z = g.z * s;
00011         return res;
00012 }

gradient_t operator+ gradient_t    g1,
gradient_t    g2
 

Definition at line 14 of file data.cpp.

References gradient_t::x, gradient_t::y, and gradient_t::z.

00015 {
00016         gradient_t res;
00017         res.x = g1.x + g2.x;
00018         res.y = g1.y + g2.y;
00019         res.z = g1.z + g2.z;
00020         return res;
00021 }


Generated on Thu Jan 23 12:32:16 2003 by doxygen1.3-rc2