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

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
 
Point3foperator+= (const Vector3f &rhs)
 
Vector3f operator- (const Point3f &rhs) const
 
Point3f operator- (const Vector3f &rhs) const
 
Point3foperator-= (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
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


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