PyPO User Manual
Transform.h File Reference

Declaration of transformations for frames and fields/currents. More...

#include <iostream>
#include <vector>
#include <complex>
#include <cmath>
#include <string>
#include <array>
#include "Structs.h"
#include "Utils.h"

Go to the source code of this file.

Functions

PYPO_DLL void transformRays (cframe *fr, double *mat)
 
PYPO_DLL void transformFields (c2Bundle *fields, double *mat, int nTot)
 

Detailed Description

Declaration of transformations for frames and fields/currents.

Function Documentation

◆ transformFields()

PYPO_DLL void transformFields ( c2Bundle fields,
double *  mat,
int  nTot 
)

Transform a c2Bundle.

Because c2Bundle objects are defined on surfaces, the components are only rotated.

Parameters
frPointer to frame to be transformed.
matPointer to transformation matrix.

◆ transformRays()

PYPO_DLL void transformRays ( cframe fr,
double *  mat 
)

Transform a frame of rays.

Parameters
frPointer to frame to be transformed.
matPointer to transformation matrix.