zenilib: Zeni::Point3f Class Reference

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
Zeni::Point3f Class Reference
Zenilib

A 3D Point represented with floats. More...

`#include <Coordinate.h>`

## Public Member Functions

| Point3f ()
| Point3f (const float &x_, const float &y_, const float &z_)
| Point3f (const Point2i &rhs)
| z is set to 0.0f More...
| Point3f (const Point2f &rhs)
| z is set to 0.0f More...
| Point3f (const Point3i &rhs)
| Point3f (const Vector3f &rhs)
Point3f | interpolate_to (const float &rhs_part, const Point3f &rhs) const
Point3f | operator+ (const Vector3f &rhs) const
Point3f & | operator+= (const Vector3f &rhs)
Vector3f | operator- (const Point3f &rhs) const
Point3f | operator- (const Vector3f &rhs) const
Point3f & | operator-= (const Vector3f &rhs)

## Public Attributes

float | x
float | y
float | z

## Detailed Description

A 3D Point represented with floats.

Note
  As of the 0.3.0.0 release, this inherits from Vector3f.

Author
  bazald

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

Definition at line 133 of file Coordinate.h.

## Constructor & Destructor Documentation

Zeni::Point3f::Point3f | ( |  | ) |

inline

Definition at line 133 of file Coordinate.hxx.

Referenced by interpolate_to(), operator+(), and operator-().

Zeni::Point3f::Point3f | ( | const float & | x_,
|  | const float & | y_,
|  | const float & | z_
| ) |  |

inline

Definition at line 138 of file Coordinate.hxx.

Zeni::Point3f::Point3f | ( | const Point2i & | rhs | ) |

inlineexplicit

z is set to 0.0f

Definition at line 143 of file Coordinate.hxx.

Zeni::Point3f::Point3f | ( | const Point2f & | rhs | ) |

inlineexplicit

z is set to 0.0f

Definition at line 148 of file Coordinate.hxx.

Zeni::Point3f::Point3f | ( | const Point3i & | rhs | ) |

inlineexplicit

Definition at line 153 of file Coordinate.hxx.

Zeni::Point3f::Point3f | ( | const Vector3f & | rhs | ) |

inline

Definition at line 158 of file Coordinate.hxx.

## Member Function Documentation

Point3f Zeni::Point3f::interpolate_to | ( | const float & | rhs_part,
|  | const Point3f & | rhs
| ) |  | const

Definition at line 41 of file Coordinate.cpp.

References Point3f(), x, y, and z.

Referenced by Zeni::Vertex3f_Color::interpolate_to(), Zeni::Vertex2f_Color::interpolate_to(), Zeni::Vertex3f_Texture::interpolate_to(), and Zeni::Vertex2f_Texture::interpolate_to().

Point3f Zeni::Point3f::operator+ | ( | const Vector3f & | rhs | ) | const

inline

Definition at line 167 of file Coordinate.hxx.

References Zeni::Vector3f::i, Zeni::Vector3f::j, Zeni::Vector3f::k, and Point3f().

Point3f & Zeni::Point3f::operator+= | ( | const Vector3f & | rhs | ) |

inline

Definition at line 175 of file Coordinate.hxx.

References Zeni::Vector3f::i, Zeni::Vector3f::j, and Zeni::Vector3f::k.

Vector3f Zeni::Point3f::operator- | ( | const Point3f & | rhs | ) | const

inline

Definition at line 163 of file Coordinate.hxx.

References x, y, and z.

Point3f Zeni::Point3f::operator- | ( | const Vector3f & | rhs | ) | const

inline

Definition at line 171 of file Coordinate.hxx.

References Zeni::Vector3f::i, Zeni::Vector3f::j, Zeni::Vector3f::k, and Point3f().

Point3f & Zeni::Point3f::operator-= | ( | const Vector3f & | rhs | ) |

inline

Definition at line 182 of file Coordinate.hxx.

References Zeni::Vector3f::i, Zeni::Vector3f::j, and Zeni::Vector3f::k.

## Member Data Documentation

float Zeni::Point3f::x

Definition at line 152 of file Coordinate.h.

Referenced by Zeni::Vertex2f_Color::interpolate_to(), Zeni::Vertex2f_Texture::interpolate_to(), interpolate_to(), Zeni::Collision::nearest_point(), Zeni::Model_Extents::operator()(), operator-(), Zeni::serialize(), Zeni::Light::set(), Zeni::Sound_Renderer_AL::set_listener_position(), Zeni::Vertex3f_Color::subrender_to(), Zeni::Vertex2f_Color::subrender_to(), Zeni::Vertex3f_Texture::subrender_to(), Zeni::Vertex2f_Texture::subrender_to(), and Zeni::unserialize().

float Zeni::Point3f::y

Definition at line 152 of file Coordinate.h.

Referenced by Zeni::Vertex2f_Color::interpolate_to(), Zeni::Vertex2f_Texture::interpolate_to(), interpolate_to(), Zeni::Collision::nearest_point(), Zeni::Model_Extents::operator()(), operator-(), Zeni::serialize(), Zeni::Light::set(), Zeni::Sound_Renderer_AL::set_listener_position(), Zeni::Vertex3f_Color::subrender_to(), Zeni::Vertex2f_Color::subrender_to(), Zeni::Vertex3f_Texture::subrender_to(), Zeni::Vertex2f_Texture::subrender_to(), and Zeni::unserialize().

float Zeni::Point3f::z

Definition at line 152 of file Coordinate.h.

Referenced by interpolate_to(), Zeni::Collision::nearest_point(), Zeni::Model_Extents::operator()(), operator-(), Zeni::serialize(), Zeni::Light::set(), Zeni::Sound_Renderer_AL::set_listener_position(), Zeni::Vertex3f_Color::subrender_to(), Zeni::Vertex3f_Texture::subrender_to(), and Zeni::unserialize().

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

- zenilib/jni/external/zenilib/zeni/Zeni/Coordinate.h
- zenilib/jni/external/zenilib/zeni/Coordinate.cpp
- zenilib/jni/external/zenilib/zeni/Zeni/Coordinate.hxx