iLand
Macros | Functions
tree.cpp File Reference
#include "global.h"
#include "tree.h"
#include "grid.h"
#include "stamp.h"
#include "species.h"
#include "resourceunit.h"
#include "model.h"
#include "snag.h"
#include "forestmanagementengine.h"
#include "modules.h"
#include "biteengine.h"
#include "treeout.h"
#include "landscapeout.h"

Macros

#define NOFULLDBG
 

Functions

double dist_and_direction (const QPointF &PStart, const QPointF &PEnd, double &rAngle)
 get distance and direction between two points. More...
 
int torusIndex (int index, int count, int buffer, int ru_index)
 helper function for gluing the edges together index: index at grid count: number of pixels that are the simulation area (e.g. More...
 

Macro Definition Documentation

◆ NOFULLDBG

#define NOFULLDBG

Function Documentation

◆ dist_and_direction()

double dist_and_direction ( const QPointF &  PStart,
const QPointF &  PEnd,
double &  rAngle 
)

get distance and direction between two points.

returns the distance (m), and the angle between PStart and PEnd (radians) in referenced param rAngle.

◆ torusIndex()

int torusIndex ( int  index,
int  count,
int  buffer,
int  ru_index 
)
inline

helper function for gluing the edges together index: index at grid count: number of pixels that are the simulation area (e.g.

100m and 2m pixel -> 50) buffer: size of buffer around simulation area (in pixels)