convert(value:to:)
Converts a value from this coordinate space to another.
Declaration
func convert<T, Space>(value: T, to targetCoordinateSpace: Space) throws -> T where T : ProjectiveTransformable3D, Space : CoordinateSpace3DParameters
- value:
The value the function converts between spaces, given in reference to this coordinate space.
- targetCoordinateSpace:
The coordinate space that the function transforms the value to.
Return Value
The value converted to the target coordinate space.