add heightAt and normalAt functions