WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
WXP::Vect Class Reference

This structure defines a vector quantity (x,y). More...

#include "../include/Vect.h"

Public Member Functions

 Vect ()
 Vect (float rx, float ry)
int init ()
int set (float rx, float ry)
int add (Vect &v1)
int sub (Vect &v1)
int scale (float sc)
int print ()

Public Attributes

float x
float y

Detailed Description

This structure defines a vector quantity (x,y).

Author
Dan Vietor

Constructor & Destructor Documentation

◆ Vect() [1/2]

Vect::Vect ( )

Constructor. Initializes class values

References init().

Referenced by add(), and sub().

◆ Vect() [2/2]

Vect::Vect ( float rx,
float ry )

Constructor. Sets the values

Parameters
rxX value
ryY value

References set().

Member Function Documentation

◆ add()

int Vect::add ( Vect & v1)

Adds a vector

Parameters
v1Vector to add

References WXP::Const::MISS, and Vect().

◆ init()

int Vect::init ( )

Initializes the class

References WXP::Const::MISS.

Referenced by Vect().

◆ print()

int Vect::print ( )

Prints the object values

◆ scale()

int Vect::scale ( float sc)

Scales the vector

Parameters
scScale factor

References WXP::Const::MISS.

◆ set()

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

Sets the values

Parameters
rxX value
ryY value

Referenced by Vect().

◆ sub()

int Vect::sub ( Vect & v1)

Subtracts a vector

Parameters
v1Subtracts this vector

References WXP::Const::MISS, and Vect().


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