The XPlane is a plane perpendicular to the y-axis.
More...
#include "pinspec/src/Surface.h"
The XPlane is a plane perpendicular to the y-axis.
The XPlane represents planes perpendicular to the x-axis using the quadratic surface formulation. The XPlane is a Surface subclass.
XPlane::XPlane |
( |
const char * |
surface_name = (char*)"" | ) |
|
The XPlane constructor.
- Parameters
-
surface_name | the (optional) name of the surface |
Assigns a default value of x=0 for the x-axis intersection point.
float XPlane::computeParametrizedDistance |
( |
neutron * |
neutron | ) |
|
|
virtual |
float XPlane::evaluate |
( |
neutron * |
neutron | ) |
|
|
virtual |
Returns the evaluation of a neutron's coordinates
with respect to the quadratic surface representing this x-plane:
.
- Parameters
-
neutron | the neutron of interest |
Implements Surface.
float XPlane::evaluate |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
|
virtual |
Returns the evaluation of a 3D coordinate
with respect to the quadratic surface representing this x-plane:
.
- Parameters
-
x | the x-coordinate of interest |
y | the y-coordinate of interest |
z | the z-coordinate of interest |
Implements Surface.
Returns the x-coordinate of the plane's intersection point with the x-axis.
- Returns
- the x-coordinate of the intersection point
bool XPlane::onSurface |
( |
neutron * |
neutron | ) |
|
|
virtual |
Checks whether a neutron is on the XPlane.
The threshold used to compute whether or not a neutron is on the on the XPlane is 1E-6 for the difference between the x-coordinate of the neutron's position and the location of the XPlane.
- Parameters
-
neutron | the neutron of interest |
- Returns
- true if on the XPlane, otherwise false
Implements Surface.
void XPlane::reflectNeutron |
( |
neutron * |
neutron | ) |
|
|
virtual |
Perfectly reflects a neutron at a xplane.
- Parameters
-
neutron | the neutron of interest |
Implements Surface.
void XPlane::setX |
( |
float |
x | ) |
|
Sets the x-coordinate of the plane's intersection point with the x-axis.
- Parameters
-
x | the x-coordinate of the intersectiont point |
The location of the plane's intersection with the x-axis
The documentation for this class was generated from the following files:
- pinspec/src/Surface.h
- pinspec/src/Surface.cpp