WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
WXP::GridPoint Struct Reference

This struct defines basic gridpoint values. More...

#include "../include/GridPoint.h"

Public Member Functions

int init ()
 
 GridPoint ()
 
 GridPoint (float gx, float gy)
 
int set (float gx, float gy)
 
int set (GridPoint gpt)
 
int offset (float gx, float gy)
 
float getGX ()
 
float getGY ()
 
int print ()
 

Public Attributes

float gx
 
float gy
 

Detailed Description

This struct defines basic gridpoint values.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ GridPoint() [1/2]

GridPoint::GridPoint ( )

Constructor. Initializes values

References init().

◆ GridPoint() [2/2]

GridPoint::GridPoint ( float  rx,
float  ry 
)

Constructor. Sets values

Parameters
rxX gridpoint
ryY gridpoint

References init(), and set().

Member Function Documentation

◆ getGX()

float WXP::GridPoint::getGX ( )
inline

Get grid X value

◆ getGY()

float WXP::GridPoint::getGY ( )
inline

Get grid Y value

◆ init()

int GridPoint::init ( )

Initializes values

References WXP::Const::MISS.

Referenced by WXP::GridPoints::getCenter(), GridPoint(), and GridPoint().

◆ offset()

int GridPoint::offset ( float  rx,
float  ry 
)

Offsets values

Parameters
rxX offset
ryY offset

◆ print()

int GridPoint::print ( )

Prints values to standard output

◆ set() [1/2]

int GridPoint::set ( float  rx,
float  ry 
)

◆ set() [2/2]

int GridPoint::set ( GridPoint  gpt)

Set the values from another GridPoint object

Parameters
gptObject to set values from

The documentation for this struct was generated from the following files: