# PhysicsQuery.SegmentDistanceResult

> Segment distance result from segment distance queries.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.U2D.Physics](/engine/6000.5/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

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

## Properties

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

## Structs

| Struct                                                                                                                                                             | Description                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------- |
| [PhysicsQuery.SegmentDistanceResult.SortAscendingOrder](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/segmentdistanceresultsortascendingorder.md) | Ascending distance sort comparer. |
