Contents

convert(value:from:)

Converts a value from a source coordinate space to this one.

Declaration

func convert<T, Space>(value: T, from sourceCoordinateSpace: Space) throws -> T where T : ProjectiveTransformable3D, Space : CoordinateSpace3D

Parameters

  • value:

    The value the function converts between spaces given in reference to the sourceCoordinateSpace.

  • sourceCoordinateSpace:

    The coordinate space the value is provided in reference to.

Return Value

The value converted from the source space to this one.