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