# RaycastHit2D.Centroid

The centroid of the primitive used to perform the cast.

![RaycastHit2D.Centroid](./images/RaycastHit2DCentroidCalculator.png)

## Property

<table border="1" class="docutils">
<tbody valign="top">
<tr>
<td>
Raycast Hit 2D
</td>
<td>
RaycastHit2D
</td>
</tr>
<tr>
<td>
Centroid
</td>
<td>
Output barycentric coordinate
</td>
</tr>
 </tbody>
</table>

