#include <RTRefls.h>
Static Public Member Functions | |
| static T | common1 (T t, T xr, T yr, T dxr, T dyr, T a, T b) |
| static T | common2 (T t, T xr, T yr, T dxr, T dyr, T a, T b) |
| static T | gp (T t, T xr, T yr, T zr, T dxr, T dyr, T dzr, T a, T b, T c) |
| static T | gh (T t, T xr, T yr, T zr, T dxr, T dyr, T dzr, T a, T b, T c) |
| static T | ge (T t, T xr, T yr, T zr, T dxr, T dyr, T dzr, T a, T b, T c) |
| static T | gpl (T t, T xr, T yr, T zr, T dxr, T dyr, T dzr, T a, T b, T c) |
| static std::array< T, 3 > | np (T xr, T yr, T zr, int flip, T a, T b, T c) |
| static std::array< T, 3 > | nh (T xr, T yr, T zr, int flip, T a, T b, T c) |
| static std::array< T, 3 > | ne (T xr, T yr, T zr, int flip, T a, T b, T c) |
| static std::array< T, 3 > | npl (T xr, T yr, T zr, int flip, T a, T b, T c) |
Public Attributes | |
| Utils< T > | ut |
Simple representation of reflectors and implementations for the Newton-Rhapson method.
|
inlinestatic |
Common factor 1 for all reflectors.
Calculate common factor 1. These calculations are done separately as these factors are common to all reflectors.
| t | Scaling factor of ray, double/float. |
| xr | Current x co-ordinate of ray, double/float. |
| yr | Current y co-ordinate of ray, double/float. |
| dxr | Component of ray direction along x-axis, double/float. |
| dyr | Component of ray direction along y-axis, double/float. |
| a | Scale factor along x-axis, double/float. |
| b | Scale factor along y-axis, double/float. |
|
inlinestatic |
Common factor 2 for all reflectors.
Calculate common factor 2. These calculations are done separately as these factors are common to all reflectors.
| t | Scaling factor of ray, double/float. |
| xr | Current x co-ordinate of ray, double/float. |
| yr | Current y co-ordinate of ray, double/float. |
| dxr | Component of ray direction along x-axis. |
| dyr | Component of ray direction along y-axis. |
| a | Scale factor along x-axis, double/float. |
| b | Scale factor along y-axis, double/float. |
|
inlinestatic |
Grid ellipsoid.
Calculate difference between ellipsoid z co-ordinate and ray z co-ordinate corresponding to x and y ray co-ordinates.
| t | Scaling factor of ray, double/float. |
| xr | Current x co-ordinate of ray, double/float. |
| yr | Current y co-ordinate of ray, double/float. |
| zr | Current z co-ordinate of ray, double/float. |
| dxr | Component of ray direction along x-axis. |
| dyr | Component of ray direction along y-axis. |
| dzr | Component of ray direction along z-axis. |
| a | Scale factor along x-axis, double/float. |
| b | Scale factor along y-axis, double/float. |
| c | Scale factor along z-axis, double/float (hyperboloid/ellipsoid only). |
|
inlinestatic |
Grid hyperboloid.
Calculate difference between hyperboloid z co-ordinate and ray z co-ordinate corresponding to x and y ray co-ordinates.
| t | Scaling factor of ray, double/float. |
| xr | Current x co-ordinate of ray, double/float. |
| yr | Current y co-ordinate of ray, double/float. |
| zr | Current z co-ordinate of ray, double/float. |
| dxr | Component of ray direction along x-axis. |
| dyr | Component of ray direction along y-axis. |
| dzr | Component of ray direction along z-axis. |
| a | Scale factor along x-axis, double/float. |
| b | Scale factor along y-axis, double/float. |
| c | Scale factor along z-axis, double/float (hyperboloid/ellipsoid only). |
|
inlinestatic |
Grid paraboloid.
Calculate difference between paraboloid z co-ordinate and ray z co-ordinate corresponding to x and y ray co-ordinates.
| t | Scaling factor of ray, double/float. |
| xr | Current x co-ordinate of ray, double/float. |
| yr | Current y co-ordinate of ray, double/float. |
| zr | Current z co-ordinate of ray, double/float. |
| dxr | Component of ray direction along x-axis. |
| dyr | Component of ray direction along y-axis. |
| dzr | Component of ray direction along z-axis. |
| a | Scale factor along x-axis, double/float. |
| b | Scale factor along y-axis, double/float. |
| c | Scale factor along z-axis, double/float (hyperboloid/ellipsoid only). |
|
inlinestatic |
Grid plane.
Calculate difference between plane z co-ordinate and ray z co-ordinate corresponding to x and y ray co-ordinates.
| t | Scaling factor of ray, double/float. |
| xr | Current x co-ordinate of ray, double/float. |
| yr | Current y co-ordinate of ray, double/float. |
| zr | Current z co-ordinate of ray, double/float. |
| dxr | Component of ray direction along x-axis. |
| dyr | Component of ray direction along y-axis. |
| dzr | Component of ray direction along z-axis. |
| a | Scale factor along x-axis, double/float. |
| b | Scale factor along y-axis, double/float. |
| c | Scale factor along z-axis, double/float (hyperboloid/ellipsoid only). |
|
inlinestatic |
Ellipsoid normal vectors.
Calculate normal vectors to point on ellipsoid.
| xr | Current x co-ordinate of ray, double/float. |
| yr | Current y co-ordinate of ray, double/float. |
| zr | Current z co-ordinate of ray, double/float. |
| flip | Direction of normal vectors. |
| a | Scale factor along x-axis, double/float. |
| b | Scale factor along y-axis, double/float. |
| c | Scale factor along z-axis, double/float (hyperboloid/ellipsoid only). |
|
inlinestatic |
Hyperboloid normal vectors.
Calculate normal vectors to point on hyperboloid.
| xr | Current x co-ordinate of ray, double/float. |
| yr | Current y co-ordinate of ray, double/float. |
| zr | Current z co-ordinate of ray, double/float. |
| flip | Direction of normal vectors. |
| a | Scale factor along x-axis, double/float. |
| b | Scale factor along y-axis, double/float. |
| c | Scale factor along z-axis, double/float (hyperboloid/ellipsoid only). |
|
inlinestatic |
Paraboloid normal vectors.
Calculate normal vectors to point on paraboloid.
| xr | Current x co-ordinate of ray, double/float. |
| yr | Current y co-ordinate of ray, double/float. |
| zr | Current z co-ordinate of ray, double/float. |
| flip | Direction of normal vectors. |
| a | Scale factor along x-axis, double/float. |
| b | Scale factor along y-axis, double/float. |
| c | Scale factor along z-axis, double/float (hyperboloid/ellipsoid only). |
|
inlinestatic |
Plane normal vectors.
Calculate normal vectors to point on plane. Seems sort of redundant, but implement this way for consistency.
| xr | Current x co-ordinate of ray, double/float. |
| yr | Current y co-ordinate of ray, double/float. |
| zr | Current z co-ordinate of ray, double/float. |
| flip | Direction of normal vectors. |
| a | Scale factor along x-axis, double/float. |
| b | Scale factor along y-axis, double/float. |
| c | Scale factor along z-axis, double/float (hyperboloid/ellipsoid only). |