how can I get the coordinates of the 4 vertices of the rectangle?

Hi all,

i have a rectangle entity. i want to get the coordinates of the vertices to calculate. how can I do that ?

How did you create the rectangle entity? Normally you’d pass a coordinates property, which would be a Rectangle instance (see So you can take the longitude and latitude of the top left and bottom right corners of the rectangle, and convert those to Cartesian3 with the cartographic class (see

Let me know if that helps.

thanks you Omar. it work!

Vào 06:16:17 UTC+7 Thứ Hai, ngày 28 tháng 10 năm 2019, Omar Shehata đã viết: