How to build corner with two intersecting line segments?

how to build corner with two intersecting line segments?

I wan to join these point such like miter or round?

See Construction of frames with contour/profile

and from the Collection of examples from discourse.threejs.org

ProfiledContourGeometryMM

ProfiledContourGeometryUVs

I found this