Contents

scaledBy(x:y:z:)

Returns a vector that results from scaling with the specified double-precision values.

Declaration

func scaledBy(x: Double = 1, y: Double = 1, z: Double = 1) -> Vector3D

Parameters

  • x:

    The double-precision value that specifies the scale for the x-element.

  • y:

    The double-precision value that specifies the scale for the y-element.

  • z:

    The double-precision value that specifies the scale for the z-element.

Return Value

The vector that results from scaling with the specified double-precision values.

See Also

Transforming a vector