Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close Submission failedFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close Your name Your email Suggestion* Switch to ManualDeclarationpublic void InverseTransformDirections(Span<Vector3> directions); Parameters Parameter Description directions The directions to be transformed, each is replaced by the transformed version. Description
Transforms multiple directions from world space to local space overwriting each original position with the transformed version. The opposite of Transform.TransformDirections.
This operation is not affected by scale or position of the transform. The transformed vectors have the same lengths as the originals.
If you need the inverse operation to transform from local space to world space you can use Transform.TransformDirections
You should use Transform.InverseTransformPoints if the vectors represent positions in space rather than directions.
Additional resources:Transform.InverseTransformDirection, Transform.TransformDirections, Transform.InverseTransformPoints, Transform.InverseTransformVectors.
Declarationpublic void InverseTransformDirections(ReadOnlySpan<Vector3> directions, Span<Vector3> transformedDirections); Parameters Parameter Description directions The directions to be transformed, these vectors are not modified by the function unless the
transformedDirections
span overlaps. transformedDirections Receives the transformed directions, must be the same length as the directions
span otherwise an exception will be thrown. If this span overlaps directions
other than representing the exact same elements the behaviour is undefined. Description
Transforms multiple directions from world space to local space writing the transformed positions to a possibly different location. The opposite of Transform.TransformDirections.
This operation is not affected by scale or position of the transform. The transformed vectors have the same lengths as the originals.
If you need the inverse operation to transform from local space to world space you can use Transform.TransformDirections
You should use Transform.InverseTransformPoints if the vectors represent positions in space rather than directions.
Additional resources:Transform.InverseTransformDirection, Transform.TransformDirections, Transform.InverseTransformPoints, Transform.InverseTransformVectors.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4