Triangle - length of the sides, coordinates of the vertices

Hello, 

Please someone write code to determine the length of the sides and the coordinates of the vertices of a triangle

Greetings!
Parents
No Data
Reply
  • Sub lengthofthesidescoordinatesofthevertices()
    Dim s As Shape, n As Node, seg As Segment

    Set s = ActiveShape
    For Each n In s.DisplayCurve.Nodes
    Debug.Print n.Index, n.PositionX, n.PositionY
    Next n
    For Each seg In s.DisplayCurve.Segments
    Debug.Print seg.Index, seg.Length
    Next seg
    End Sub

Children