Detector.surface_normal¶
- Detector.surface_normal(param)[source]¶
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,
tangentis the return value ofsurface_derivatparam.- Parameters:
- param
array-likeor sequence Parameter value(s) at which to evaluate. If
ndim >= 2, a sequence of lengthndimmust be provided.
- param
- Returns:
- normal
numpy.ndarray Unit vector(s) perpendicular to the detector surface at
param. Ifparamis 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,)ifndimis 1,param.shape[:-1] + (space_ndim,)otherwise.
- normal