KudanCV
KudanVector2 Class Reference

#include <KudanCV.h>

Public Member Functions

 KudanVector2 ()
 
 KudanVector2 (float x, float y)
 
void zero ()
 
std::string toString ()
 

Public Attributes

float x
 
float y
 

Detailed Description

Simple representation of a 2D point.

Constructor & Destructor Documentation

◆ KudanVector2() [1/2]

KudanVector2::KudanVector2 ( )

Default constructor initialises the data to the zero vector (0,0,0)'

◆ KudanVector2() [2/2]

KudanVector2::KudanVector2 ( float  x,
float  y 
)

Constructor for initialising the data to the given vector

Parameters
x,yCoefficients of the vector

Member Function Documentation

◆ toString()

std::string KudanVector2::toString ( )

Returns a representation of this as a string (x,y)

Returns
A string representation of this vector

◆ zero()

void KudanVector2::zero ( )

Set the all coefficients to zero

Member Data Documentation

◆ x

float KudanVector2::x

Public x, y coefficients of the vector


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