zenilib
0.5.3.0
|
A 2D Point represented with floats. More...
#include <Coordinate.h>
Public Member Functions | |
Point2f () | |
Point2f (const float &x_, const float &y_) | |
Point2f (const Point2i &rhs) | |
Point2f (const Point3i &rhs) | |
z in rhs is ignored. More... | |
Point2f (const Point3f &rhs) | |
z in rhs is ignored. More... | |
Point2f (const Vector2f &rhs) | |
Point2f | interpolate_to (const float &rhs_part, const Point2f &rhs) const |
Get a point inbetween this point and another point of the same type. More... | |
Point2f | operator+ (const Vector2f &rhs) const |
Point2f & | operator+= (const Vector2f &rhs) |
Vector2f | operator- (const Point2f &rhs) const |
Point2f | operator- (const Vector2f &rhs) const |
Point2f & | operator-= (const Vector2f &rhs) |
Public Attributes | |
float | x |
float | y |
Static Public Attributes | |
static const float | z = 0 |
A 2D Point represented with floats.
Contact: bazal d@ze nipex .com
Definition at line 98 of file Coordinate.h.
|
inline |
Definition at line 54 of file Coordinate.hxx.
Referenced by interpolate_to(), operator+(), and operator-().
Definition at line 59 of file Coordinate.hxx.
Definition at line 64 of file Coordinate.hxx.
z in rhs is ignored.
Definition at line 69 of file Coordinate.hxx.
z in rhs is ignored.
Definition at line 74 of file Coordinate.hxx.
Definition at line 79 of file Coordinate.hxx.
Get a point inbetween this point and another point of the same type.
Definition at line 28 of file Coordinate.cpp.
References Point2f(), x, and y.
Referenced by Zeni::Vertex3f_Texture::interpolate_to(), and Zeni::Vertex2f_Texture::interpolate_to().
Definition at line 88 of file Coordinate.hxx.
References Zeni::Vector2f::i, Zeni::Vector2f::j, and Point2f().
Definition at line 96 of file Coordinate.hxx.
References Zeni::Vector2f::i, and Zeni::Vector2f::j.
Definition at line 84 of file Coordinate.hxx.
Definition at line 92 of file Coordinate.hxx.
References Zeni::Vector2f::i, Zeni::Vector2f::j, and Point2f().
Definition at line 102 of file Coordinate.hxx.
References Zeni::Vector2f::i, and Zeni::Vector2f::j.
float Zeni::Point2f::x |
Definition at line 117 of file Coordinate.h.
Referenced by Zeni::Image::extract_Color(), Zeni::Matrix4f::Frustum(), Zeni::Widget_Rectangle::get_center(), Zeni::Widget_Rectangle::get_lower_left(), Zeni::Widget_Rectangle::get_upper_right(), Zeni::Widget_Rectangle::get_width(), interpolate_to(), Zeni::Widget_Rectangle::is_inside(), Zeni::Text_Box::on_accept(), Zeni::Widget::on_event(), Zeni::Selector::on_mouse_button(), operator-(), Zeni::render_image(), Zeni::Popup_Menu_State::Sound_Check_Box::render_impl(), Zeni::Text_Box::render_impl(), Zeni::Font_FT::render_text(), Zeni::Widget_Renderer_Text::render_to(), Zeni::Game::run(), Zeni::serialize(), Zeni::Video::set_2d_view(), Zeni::Vertex3f_Texture::subrender_to(), Zeni::Vertex2f_Texture::subrender_to(), and Zeni::unserialize().
float Zeni::Point2f::y |
Definition at line 117 of file Coordinate.h.
Referenced by Zeni::Image::extract_Color(), Zeni::Matrix4f::Frustum(), Zeni::Widget_Rectangle::get_center(), Zeni::Widget_Rectangle::get_height(), Zeni::Widget_Rectangle::get_lower_left(), Zeni::Widget_Rectangle::get_upper_right(), interpolate_to(), Zeni::Widget_Rectangle::is_inside(), Zeni::Widget::on_event(), Zeni::Selector::on_mouse_button(), operator-(), Zeni::render_image(), Zeni::Popup_Menu_State::Sound_Check_Box::render_impl(), Zeni::Text_Box::render_impl(), Zeni::Font_FT::render_text(), Zeni::Widget_Renderer_Text::render_to(), Zeni::Game::run(), Zeni::serialize(), Zeni::Video::set_2d_view(), Zeni::Vertex3f_Texture::subrender_to(), Zeni::Vertex2f_Texture::subrender_to(), and Zeni::unserialize().
|
static |
Definition at line 118 of file Coordinate.h.