# PhysicsQuery.SegmentDistanceResult

> Segment distance result from segment distance queries.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public readonly struct PhysicsQuery.SegmentDistanceResult
```

## Properties

| Property                                                                                                                   | Description                                      |
| -------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [closest1](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/segmentdistanceresult/closest1.md)   | The closest point on the first segment           |
| [closest2](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/segmentdistanceresult/closest2.md)   | The closest point on the second segment          |
| [distance](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/segmentdistanceresult/distance.md)   | The distance between the closest points          |
| [fraction1](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/segmentdistanceresult/fraction1.md) | The barycentric coordinate on the first segment  |
| [fraction2](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/segmentdistanceresult/fraction2.md) | The barycentric coordinate on the second segment |
