Contents

SCNVector4

A representation of a four-component vector.

Declaration

struct SCNVector4

Overview

SceneKit uses four-component vectors to represent multiple kinds of data:

  • Axis-angle rotation or torque. The x, y, and z fields contain the normalized x-, y-, and z-components of the rotation axis, and the w field contains the rotation angle, in radians, or torque magnitude, in newton-meters.

  • Color value (or range). The x, y, z, and w fields contain the red, green, blue, and alpha components of the color, or the width of the color variation range in each component.

Topics

Components

Creating Vectors

Converting Vector Types

Comparing Vectors

Zero Constant

Initializers

See Also

Vectors