# PhysicsWorld.DrawResults.LineElement

> A Line Element.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule
* **Implements:** [IEquatable\<LineElement>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public readonly struct PhysicsWorld.DrawResults.LineElement : IEquatable<PhysicsWorld.DrawResults.LineElement>
```

## Fields

| Value                                                                                                                 | Description                        |
| --------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
| [color](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/drawresultslineelement/color.md)               | The color of the line element.     |
| [elementDepth](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/drawresultslineelement/elementdepth.md) | The depth of the element.          |
| [length](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/drawresultslineelement/length.md)             | The length of the line element.    |
| [transform](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/drawresultslineelement/transform.md)       | The transform of the line element. |

## Static Methods

| Method                                                                                                | Description                                                                                                                                                                                     |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Size](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/drawresultslineelement/size.md) | The data size of the line element. This can be useful in understanding the memory stride in a [ComputeBuffer](/engine/6000.7/script-reference/unityengine/computebuffer.md) or other structure. |
