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

This struct defines a set of parameters for rectangular regions. More...

#include "../include/Coords.h"

Public Member Functions

int init ()
 
 Coords ()
 
 Coords (float x1, float y1, float x2, float y2)
 
int set (float x1, float y1, float x2, float y2)
 
int print ()
 

Public Attributes

float xmin
 
float ymin
 
float xmax
 
float ymax
 
float xext
 
float yext
 

Friends

class GTran
 

Detailed Description

This struct defines a set of parameters for rectangular regions.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ Coords() [1/2]

Coords::Coords ( )

Constructor. Initializes values

References init().

◆ Coords() [2/2]

Coords::Coords ( float  x1,
float  y1,
float  x2,
float  y2 
)

Constructor. Sets the values given opposite points of rectangular region

Parameters
x1X coordinate of first point
y1Y coordinate of first point
x2X coordinate of second point
y2Y coordinate of second point

Member Function Documentation

◆ init()

int Coords::init ( )

Initializes the class values

References WXP::Const::MISS.

Referenced by Coords().

◆ print()

int Coords::print ( )

Prints the class values to standard output

◆ set()

int Coords::set ( float  x1,
float  y1,
float  x2,
float  y2 
)

Sets the values given opposite points of rectangular region

Parameters
x1X coordinate of first point
y1Y coordinate of first point
x2X coordinate of second point
y2Y coordinate of second point

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