The Point class defines a position (or euclidean vector from (0,0)) in 2D space.
More...
#include <Geom.h>
|
float | x |
| X-coordinate of the point. More...
|
|
float | y |
| Y-coordinate of the point. More...
|
|
The Point class defines a position (or euclidean vector from (0,0)) in 2D space.
Definition at line 61 of file Geom.h.
Point::Point |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
Point constructor with parameters.
- Parameters
-
x | X-coordinate of the point. |
y | Y-coordinate of the point. |
Definition at line 17 of file Geom.cpp.
Point::Point |
( |
const Point & |
obj | ) |
|
virtual Point::~Point |
( |
| ) |
|
|
virtualdefault |
float Point::Det |
( |
Point |
another | ) |
const |
|
inline |
Computes the determinant of matrix.
- Parameters
-
another | Second column of matrix |
- Returns
- The determinant of matrix.
Definition at line 492 of file Geom.h.
float Point::EuclideanNorm |
( |
| ) |
const |
|
inline |
Computes euclidean norm of vector.
- Returns
- Euclidean norm of vector.
Definition at line 486 of file Geom.h.
std::pair< float, float > Point::GetPair |
( |
| ) |
|
Creates STL pair (x,y) from point.
- Returns
- STL pair (x,y).
Definition at line 43 of file Geom.cpp.
Point Point::operator* |
( |
float |
k | ) |
const |
|
inline |
operator *
- Parameters
-
- Returns
- (k * x, k * y)
Definition at line 467 of file Geom.h.
Point Point::operator+ |
( |
const Point & |
another | ) |
const |
|
inline |
operator +
- Parameters
-
- Returns
- (this.x + another.x, this.y + another.y)
Definition at line 461 of file Geom.h.
Point Point::operator- |
( |
const Point & |
another | ) |
const |
|
inline |
operator -
- Parameters
-
- Returns
- (this.x - another.x, this.y - another.y)
Definition at line 455 of file Geom.h.
Point Point::operator- |
( |
| ) |
const |
|
inline |
operator -
- Returns
- (-x, -y)
Definition at line 504 of file Geom.h.
Point Point::operator/ |
( |
float |
k | ) |
const |
|
inline |
operator /
- Parameters
-
- Returns
- ( x / k, y / k)
Definition at line 473 of file Geom.h.
Assignment operator.
- Parameters
-
- Returns
- Reference to object.
Definition at line 510 of file Geom.h.
bool Point::operator== |
( |
const Point & |
another | ) |
const |
|
inline |
operator ==
- Parameters
-
another | Object to compare. |
- Returns
- (x, y) == (another.x, another.y)
Definition at line 498 of file Geom.h.
float Point::ScalarProduct |
( |
const Point & |
another | ) |
const |
|
inline |
Computes scalar product of vectors (this * anoher)
- Parameters
-
another | Second operand of scalar product |
- Returns
- Result of scalar product of vectors (this * anoher)
Definition at line 449 of file Geom.h.
float Point::SquaredEuclideanNorm |
( |
| ) |
const |
|
inline |
Computes squared euclidean norm of vector.
- Returns
- Squared euclidean norm of vector.
Definition at line 480 of file Geom.h.
std::string Point::ToString |
( |
| ) |
const |
Creates STL string, which contains x,y values.
- Returns
- STL string, which contains x,y values.
Definition at line 48 of file Geom.cpp.
Returns X-coordinate of the point.
- Returns
- X-coordinate of the point.
Definition at line 24 of file Geom.cpp.
Returns Y-coordinate of the point.
- Returns
- Y-coordinate of the point.
Definition at line 30 of file Geom.cpp.
X-coordinate of the point.
Definition at line 192 of file Geom.h.
Y-coordinate of the point.
Definition at line 193 of file Geom.h.
The documentation for this class was generated from the following files: