Hi,
I am having trouble with the arcade script below being used in an attribute rule that is designed to adjust the building footprints using the code below. It validates, but when it runs, the vertices do not change and I am not sure how to return the modified geometry.
The script below primarily works with rectilinear polygons, and it will be modified later to check and update each segment so that all segments that it enforces collinear and parallel lines.
function GetThirdVertex(NPoint, a, m, d){
var np = Dictionary( NPoint )
//console( np )
// Solve for possible x2 and y2 coordinates
var deltaX = d / sqrt(1 + pow(m,2))
var deltaY = m * deltaX
// Compute the two possible vertices
if( a > 0 && a < 180 ){
np.x = np.x + deltaX
np.y = np.y + deltaY