# RayHit

> Class

Inheritance

* [object](https://learn.microsoft.com/dotnet/api/system.object)
* RayHit

***

Inherited Members

* [Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\))

* [Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\))

* [GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)

* [GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype)

* [MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

* [ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)

* [ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

***

Namespace: UnityEngine.Pixyz.Scene

```csharp
[Serializable]
public class RayHit
```

## Constructors

### RayHit()

```csharp
public RayHit()
```

### RayHit(RayHit)

```csharp
public RayHit(RayHit o)
```

Parameters

| Type                     | Name | Description |
| ------------------------ | ---- | ----------- |
| [RayHit](./scene_rayhit) | o    |             |

## Fields

### rayParam

```csharp
public double rayParam
```

Returns

| Type                                                           | Description |
| -------------------------------------------------------------- | ----------- |
| [double](https://learn.microsoft.com/dotnet/api/system.double) |             |

### occurrence

```csharp
public uint occurrence
```

Returns

| Type                                                         | Description |
| ------------------------------------------------------------ | ----------- |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) |             |

### triangleIndex

```csharp
public int triangleIndex
```

Returns

| Type                                                       | Description |
| ---------------------------------------------------------- | ----------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) |             |

### triangleParam

```csharp
public Point2 triangleParam
```

Returns

| Type                    | Description |
| ----------------------- | ----------- |
| [Point2](./geom_point2) |             |
