<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/matrix4x4h",
  "metadataVersion" : "0.1.0",
  "role" : "Namespace",
  "symbol" : {
    "kind" : "Namespace",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "matrix4x4h"
  },
  "title" : "matrix4x4h"
}
-->

# matrix4x4h

A set of nodes that transform positions and directions with half-precision 4×4 matrices.

## Topics

### Functions

[`half3 matrix4x4h::transformDirection(matrix, vector)`](/documentation/ComputeGraph/matrix4x4h/transformDirection)

Transforms a half-precision direction vector by a 4x4 matrix, ignoring translation.

[`half3 matrix4x4h::transformPosition(matrix, position)`](/documentation/ComputeGraph/matrix4x4h/transformPosition)

Transforms a half-precision position by a 4x4 matrix, including translation.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)