Point2D Struct Reference

#include <point.h>

Inheritance diagram for Point2D:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Point2D ortho ()
 Point2D (double _x, double _y)
 Point2D ()

Public Attributes

double x
double y

Detailed Description

Representation of a point in $ \mathbb{R}^2 $ . The class represents 2D points in terms of their position (x, y) in in $ \mathbb{R}^2 $ .

Author:
Gian Diego Tipaldi

Definition at line 36 of file point.h.


Constructor & Destructor Documentation

Point2D::Point2D (  ) 

Default constructor. It sets the point to be in the origin (0,0)

Definition at line 3 of file point.cpp.

Point2D::Point2D ( double  _x,
double  _y 
)

Constructor. It sets the point to be in (_x, _y)

Definition at line 10 of file point.cpp.


Member Function Documentation

Point2D Point2D::ortho (  )  [inline]

Returns the orthogonal vector (rotation of 90 deg)

Definition at line 43 of file point.h.


Member Data Documentation

double Point2D::x

The x coordinate.

Definition at line 46 of file point.h.

double Point2D::y

The y coordinate.

Definition at line 47 of file point.h.


The documentation for this struct was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines


flirtlib
Author(s): Bhaskara Marthi, Gian Diego Tipaldi
autogenerated on Fri Jan 11 11:15:48 2013