Adobe Systems, Inc.

utilities.hpp File Reference

Various utilities not specific to the image library. Some are non-standard STL extensions or generic iterator adaptors. More...

#include "gil_config.hpp"
#include <functional>
#include <cmath>
#include <cstddef>

Go to the source code of this file.


Classes

class  point2< T >
 2D point both axes of which have the same dimension type

MODELS: Point2DConcept More...

struct  point2< T >::axis< D >

Functions

template<typename T>
align (T val, int alignment)
point2< int > iceil (const point2< double > &p)
point2< int > iceil (const point2< float > &p)
int iceil (double x)
int iceil (float x)
point2< int > ifloor (const point2< double > &p)
point2< int > ifloor (const point2< float > &p)
int ifloor (double x)
int ifloor (float x)
point2< int > iround (const point2< double > &p)
point2< int > iround (const point2< float > &p)
int iround (double x)
int iround (float x)
template<typename T>
GIL_FORCEINLINE point2< double > operator * (const point2< T > &p, double t)
template<typename T>
GIL_FORCEINLINE T operator * (const point2< T > &p1, const point2< T > &p2)
template<typename T>
GIL_FORCEINLINE bool operator!= (const point2< T > &p1, const point2< T > &p2)
template<typename T>
GIL_FORCEINLINE point2< T > operator+ (const point2< T > &p1, const point2< T > &p2)
template<typename T>
GIL_FORCEINLINE point2< T > operator- (const point2< T > &p1, const point2< T > &p2)
template<typename T>
GIL_FORCEINLINE point2< double > operator/ (const point2< T > &p, double t)
template<typename T>
GIL_FORCEINLINE bool operator== (const point2< T > &p1, const point2< T > &p2)

Detailed Description

Author:
Lubomir Bourdev and Hailin Jin
Adobe Systems Incorporated

Definition in file utilities.hpp.


Function Documentation

int iround float  x  ) 
 

Rounding of real numbers / points to integers / integer points

Definition at line 92 of file utilities.hpp.

template<typename T>
T align val,
int  alignment
 

computing size with alignment

Definition at line 118 of file utilities.hpp.

Copyright © 2006 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google