Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
Realm::TranslationTransform< N, T > Class Template Reference

#include <indexspace.h>

Collaboration diagram for Realm::TranslationTransform< N, T >:

Public Member Functions

 TranslationTransform (void)=default
 
 TranslationTransform (const Point< N, T > &_offset)
 
template<typename T2 >
Realm::Point< N, T > operator[] (const Realm::Point< N, T2 > &point) const
 

Public Attributes

Point< N, T > offset
 

Detailed Description

template<int N, typename T = int>
class Realm::TranslationTransform< N, T >

A translation transform is a special case of an affine transform that only has a translation component. It is used to transform points in one coordinate space into points in another coordinate space by adding a constant offset to each coordinate.

Constructor & Destructor Documentation

◆ TranslationTransform() [1/2]

template<int N, typename T = int>
Realm::TranslationTransform< N, T >::TranslationTransform ( void  )
default

◆ TranslationTransform() [2/2]

template<int N, typename T = int>
Realm::TranslationTransform< N, T >::TranslationTransform ( const Point< N, T > &  _offset)

Member Function Documentation

◆ operator[]()

template<int N, typename T = int>
template<typename T2 >
Realm::Point< N, T > Realm::TranslationTransform< N, T >::operator[] ( const Realm::Point< N, T2 > &  point) const

Apply the translation transform to a point in the domain source coordinate space to produce a point in the destination coordinate space. Adds the offset to the point.

Parameters
pointThe point in the source coordinate space.
Returns
The point in the destination coordinate space.

Member Data Documentation

◆ offset

template<int N, typename T = int>
Point<N, T> Realm::TranslationTransform< N, T >::offset

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