Hauptinhalt

reverse

R2026b

Reverse direction of ray path

Since R2026b

    Description

    Add-On Required: This feature requires the 3D Scenarios add-on.

    raypathOut = reverse(raypathIn) reverses the direction of the specified ray paths by swapping the source and destination and by reversing the order of the interactions.

    Input Arguments

    collapse all

    Input ray paths, specified as an array of RayPath objects.

    Output Arguments

    collapse all

    Reversed ray paths, returned as an array of RayPath objects of the same size as raypathIn.

    Version History

    Introduced in R2026b

    See Also

    Objects