zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Zeni::Point2i Class Reference

A 2D Point represented with integers. More...

#include <Coordinate.h>

Public Member Functions

 Point2i ()
 
 Point2i (const int &x_, const int &y_)
 
 Point2i (const Point2f &rhs)
 
 Point2i (const Point3i &rhs)
 z in rhs is ignored. More...
 
 Point2i (const Point3f &rhs)
 z in rhs is ignored. More...
 
Point2i interpolate_to (const float &rhs_part, const Point2i &rhs) const
 Get a point inbetween this point and another point of the same type. More...
 

Public Attributes

Sint32 x
 
Sint32 y
 

Static Public Attributes

static const Sint32 z = 0
 

Detailed Description

A 2D Point represented with integers.

Note
Point2f is often a better choice.
Author
bazald

Contact: bazal.nosp@m.d@ze.nosp@m.nipex.nosp@m..com

Definition at line 85 of file Coordinate.h.

Constructor & Destructor Documentation

Zeni::Point2i::Point2i ( )
inline

Definition at line 29 of file Coordinate.hxx.

Referenced by interpolate_to().

Zeni::Point2i::Point2i ( const int x_,
const int y_ 
)
inline

Definition at line 34 of file Coordinate.hxx.

Zeni::Point2i::Point2i ( const Point2f rhs)
inlineexplicit

Definition at line 39 of file Coordinate.hxx.

Zeni::Point2i::Point2i ( const Point3i rhs)
inlineexplicit

z in rhs is ignored.

Definition at line 44 of file Coordinate.hxx.

Zeni::Point2i::Point2i ( const Point3f rhs)
inlineexplicit

z in rhs is ignored.

Definition at line 49 of file Coordinate.hxx.

Member Function Documentation

Point2i Zeni::Point2i::interpolate_to ( const float &  rhs_part,
const Point2i rhs 
) const

Get a point inbetween this point and another point of the same type.

Definition at line 22 of file Coordinate.cpp.

References Point2i(), x, and y.

Member Data Documentation

const int Zeni::Point2i::z = 0
static

Definition at line 95 of file Coordinate.h.


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