Table of Contents

I/O Transformation with Linear Shift Defined by Two Points

Full Name

Lib.Mervis.v1_0.LinearWithShiftByTwoPoints

Required Project References

Implemented Directions

Direction from User's PerspectiveDirection from ITransform's PerspectiveInput Data TypeOutput Data Type
IO → ST Forward dint real
ST → IO Reverse real dint

Parameters

Transformation parameters are always specified in the IO → ST direction!!!

Name Data TypeRetainMeaning
Shift usint No Determines how many bits to shift the input variable to the right
X1 real No First point of the line
X2 real No Second point of the line
Y1 real No First point of the line
Y2 real No Second point of the line
Min real No Minimum possible output value
Max real No Maximum possible output value

Parameters are applied in the following order (in the case of reverse transformation, everything happens in reverse):

  1. Clipping the input value to the range Min..Max
  2. Bit shift to the right
  3. Applying the linear transformation