CircularDetector.surface_normal¶
- CircularDetector.surface_normal(param)¶
Unit vector perpendicular to the detector surface at
param
.The orientation is chosen as follows:
In 2D, the system
(normal, tangent)
should be right-handed.In 3D, the system
(tangent[0], tangent[1], normal)
should be right-handed.
Here,
tangent
is the return value ofsurface_deriv
atparam
.- Parameters:
- param
array-like
or sequence Parameter value(s) at which to evaluate. If
ndim >= 2
, a sequence of lengthndim
must be provided.
- param
- Returns:
- normal
numpy.ndarray
Unit vector(s) perpendicular to the detector surface at
param
. Ifparam
is a single parameter, an array of shape(space_ndim,)
representing a single vector is returned. Otherwise the shape of the returned array isparam.shape + (space_ndim,)
ifndim
is 1,param.shape[:-1] + (space_ndim,)
otherwise.
- normal