Function getElementRelativePoints