---
title: MouseParams
framework: ComputeGraph
role: symbol
role_heading: Structure
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/mouseparams
---

# MouseParams

Parameters describing mouse interaction in 3D space.

## Declaration

```swift
struct MouseParams
```

## Overview

Overview This structure captures both the position and direction of a mouse cursor projected into 3D coordinates, commonly used for ray casting or spatial interactions.

## Topics

### Initializers

- [init()](computegraph/mouseparams/init().md)
- [init(position:direction:has_value:)](computegraph/mouseparams/init(position:direction:has_value:).md)

### Instance Properties

- [direction](computegraph/mouseparams/direction.md)
- [has_value](computegraph/mouseparams/has_value.md)
- [position](computegraph/mouseparams/position.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Sendable](swift/sendable.md)

## See Also

### Geometry and simulation inputs

- [ComputeNodeGraph.Topology](computegraph/computenodegraph/topology.md)
- [CoordinateSpace](computegraph/coordinatespace.md)
- [ComputeNodeGraph.StructureLayout](computegraph/computenodegraph/structurelayout.md)
- [StripOrientation](computegraph/striporientation.md)
- [Viewpoint](computegraph/viewpoint-swift.struct.md)
