# Ray

> Class

Inheritance

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

***

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.Geom

```csharp
[Serializable]
public class Ray
```

## Constructors

### Ray()

```csharp
public Ray()
```

### Ray(Ray)

```csharp
public Ray(Ray o)
```

Parameters

| Type              | Name | Description |
| ----------------- | ---- | ----------- |
| [Ray](./geom_ray) | o    |             |

## Fields

### origin

```csharp
public Point3 origin
```

Returns

| Type                    | Description |
| ----------------------- | ----------- |
| [Point3](./geom_point3) |             |

### direction

```csharp
public Point3 direction
```

Returns

| Type                    | Description |
| ----------------------- | ----------- |
| [Point3](./geom_point3) |             |
