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

#include <indexspace.h>

Collaboration diagram for Realm::AffineTransform< M, N, T >:

Public Member Functions

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

Public Attributes

Realm::Matrix< M, N, T > transform
 
Point< M, T > offset
 

Detailed Description

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

An affine transform is used to transform points in one coordinate space into points in another coordinate space using the basic Ax + b transformation, where A is a transform matrix and b is an offset vector

Constructor & Destructor Documentation

◆ AffineTransform() [1/2]

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

◆ AffineTransform() [2/2]

template<int M, int N, typename T = int>
Realm::AffineTransform< M, N, T >::AffineTransform ( const Realm::Matrix< M, N, T > &  _transform,
const Point< M, T > &  _offset 
)

Member Function Documentation

◆ operator[]()

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

Apply the affine transform to a point in the domain source coordinate space to produce a point in the destination coordinate space.

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

Member Data Documentation

◆ offset

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

◆ transform

template<int M, int N, typename T = int>
Realm::Matrix<M, N, T> Realm::AffineTransform< M, N, T >::transform

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