Geometry.det_to_src

Geometry.det_to_src(mparam, dparam, normalized=True)[source]

Vector pointing from a detector location to the source.

Parameters:
mparamarray-like or sequence

Motion parameter(s) at which to evaluate. If motion_params.ndim >= 2, a sequence of that length must be provided.

dparamarray-like or sequence

Detector parameter(s) at which to evaluate. If det_params.ndim >= 2, a sequence of that length must be provided.

normalizedbool, optional

If True, normalize the resulting vector(s) to unit length.

Returns:
vecnumpy.ndarray

(Unit) vector(s) pointing from the detector to the source.