<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ShaderGraph-Docs",
  "identifier" : "/documentation/ShaderGraph/Math/Cos-Pi-(RealityKit)",
  "metadataVersion" : "0.1.0",
  "role" : "ShaderGraph Node",
  "symbol" : {
    "kind" : "ShaderGraph Node",
    "modules" : [
      "ShaderGraph"
    ],
    "preciseIdentifier" : "Shader_ND_MTL_cospi_half"
  },
  "title" : "Cos Pi (RealityKit)"
}
-->

# Cos Pi (RealityKit)

Compute cos(πX).

## Parameter Types

**Cos Pi (half):**

|Input|Type|
                |-----|----|
                |`X`  |Half|

|Output|Type|
                |------|----|
                |`Out` |Half|

**Cos Pi (vector3h):**

|Input|Type    |
                |-----|--------|
                |`X`  |Vector3h|

|Output|Type    |
                |------|--------|
                |`Out` |Vector3h|

**Cos Pi (vector4f):**

|Input|Type    |
                |-----|--------|
                |`X`  |Vector4f|

|Output|Type    |
                |------|--------|
                |`Out` |Vector4f|

**Cos Pi (vector2h):**

|Input|Type    |
                |-----|--------|
                |`X`  |Vector2h|

|Output|Type    |
                |------|--------|
                |`Out` |Vector2h|

**Cos Pi (vector4h):**

|Input|Type    |
                |-----|--------|
                |`X`  |Vector4h|

|Output|Type    |
                |------|--------|
                |`Out` |Vector4h|

**Cos Pi (float):**

|Input|Type |
                |-----|-----|
                |`X`  |Float|

|Output|Type |
                |------|-----|
                |`Out` |Float|

**Cos Pi (vector3f):**

|Input|Type    |
                |-----|--------|
                |`X`  |Vector3f|

|Output|Type    |
                |------|--------|
                |`Out` |Vector3f|

**Cos Pi (vector2f):**

|Input|Type    |
                |-----|--------|
                |`X`  |Vector2f|

|Output|Type    |
                |------|--------|
                |`Out` |Vector2f|

---

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)