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)
 Multiplikation eines Gradientenvektors mit einem Skalar.

gradient_t operator+ (gradient_t g1, gradient_t g2)
 Addition zweier Gradientenvektoren.


Function Documentation

gradient_t operator * gradient_t    g,
float    s
 

Multiplikation eines Gradientenvektors mit einem Skalar.

Definition at line 8 of file data.cpp.

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

00009 {
00010         gradient_t res;
00011         res.x = g.x * s;
00012         res.y = g.y * s;
00013         res.z = g.z * s;
00014         return res;
00015 }

gradient_t operator+ gradient_t    g1,
gradient_t    g2
 

Addition zweier Gradientenvektoren.

Definition at line 18 of file data.cpp.

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

00019 {
00020         gradient_t res;
00021         res.x = g1.x + g2.x;
00022         res.y = g1.y + g2.y;
00023         res.z = g1.z + g2.z;
00024         return res;
00025 }


Generated on Thu Jan 30 21:35:44 2003 for 3DVis by doxygen1.3-rc2