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 : ProjectiveTransformable3DFloat, Space : CoordinateSpace3DFloatParameters
- value:
The value to convert between spaces, given in reference to this coordinate space.
- targetCoordinateSpace:
The coordinate space the function transforms the value to.
Return Value
The value converted to the target coordinate space.