#include "libnltrack.h"
#include <math.h>
Functions | |
int | addFreeNode (float posX, float posY, float posZ, NlTrack *Track) |
Add a Free Node. | |
void | modifyFreeNode (int nodeindex, float posX, float posY, float posZ, NlTrack *Track) |
Modify a Free Node. | |
void | deleteFreeNode (int nodeindex, NlTrack *Track) |
Delete a Free Node. | |
FreeNode | getFreeNode (int nodeindex, NlTrack *Track) |
Get a Free Node. | |
int | getTotalFreeNodes (NlTrack *Track) |
Get the number of the free nodes. |
int addFreeNode | ( | float | posX, | |
float | posY, | |||
float | posZ, | |||
NlTrack * | Track | |||
) |
Add a Free Node.
posX | is the x-axis position of the node | |
posY | is the y-axis position of the node | |
posZ | is the z-axis position of the node | |
Track | a pointer to the NlTrack |
References NlTrack::freeNodes, NlTrack::frensize, FreeNode::posX, FreeNode::posY, FreeNode::posZ, and NlTrack::totalFreeNodes.
void deleteFreeNode | ( | int | nodeindex, | |
NlTrack * | Track | |||
) |
Delete a Free Node.
nodeindex | is the index number of the node, which is deleted. | |
Track | a pointer to the NlTrack |
References NlTrack::freeNodes, NlTrack::frensize, and NlTrack::totalFreeNodes.
Get a Free Node.
nodeindex | is the index number of the node, which we like to get. | |
Track | a pointer to the NlTrack |
References NlTrack::freeNodes.
int getTotalFreeNodes | ( | NlTrack * | Track | ) |
Get the number of the free nodes.
Track | a pointer to the NlTrack |
References NlTrack::totalFreeNodes.
void modifyFreeNode | ( | int | nodeindex, | |
float | posX, | |||
float | posY, | |||
float | posZ, | |||
NlTrack * | Track | |||
) |
Modify a Free Node.
nodeindex | is the index number of the node, which is modified. | |
posX | is the x-axis position of the node | |
posY | is the y-axis position of the node | |
posZ | is the z-axis position of the node | |
Track | a pointer to the NlTrack |
References NlTrack::freeNodes, FreeNode::posX, FreeNode::posY, and FreeNode::posZ.