how know position of wall in 2D

The position of the wall is represented by transform: simd_float4x4, how a know start point and end point of wall

how know position of wall in 2D
 
 
Q