Matrix.flipOrientation
- raytracing.Matrix.flipOrientation(self)
We flip the element around (as in, we turn a lens around front-back). This is useful for real elements and for groups.
- Returns:
Matrix – An element with the properties of the flipped original element
- Return type:
object of Matrix class
Examples
>>> # Mat is an ABCD matrix of an object >>> Mat= Matrix(A=1,B=0,C=-1/5,D=1,physicalLength=2,frontVertex=-1,backVertex=2,label='Lens') >>> _ = Mat.display() >>> flippedMat=Mat.flipOrientation() >>> _ = flippedMat.display()
The original object:
The flipped object:
See also
Notes
For individual objects, it does not do anything because they are the same either way. However, subclasses can override this function and act accordingly.