====== polygon ====== **Category**: Data structure ===== Functions ===== ---- ==== containsPoint ==== ''[[preview:data-types#boolean|boolean]] **polygon.containsPoint**(//object//, //point//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | | //''point''// | ''[[preview:api:vec2f|vec2f]]'' | | ---- ==== getClosestPoint ==== ''[[preview:api:vec2f|vec2f]] **polygon.getClosestPoint**(//object//, //point//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | | //''point''// | ''[[preview:api:vec2f|vec2f]]'' | | ''[[preview:api:vec2f|vec2f]] **polygon.getClosestPoint**(//object//, //point//, //outPosition//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | | //''point''// | ''[[preview:api:vec2f|vec2f]]'' | | | //''outPosition''// | ''[[preview:data-types#float|float]]'' | //[[:annotations#out_argument|Out argument]]// | ---- ==== distance ==== ''[[preview:data-types#float|float]] **polygon.distance**(//object//, //point//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | | //''point''// | ''[[preview:api:vec2f|vec2f]]'' | | ''[[preview:data-types#float|float]] **polygon.distance**(//object//, //polygon//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | | //''polygon''// | ''[[preview:data-types#polygon|polygon]]'' | | ---- ==== distance2 ==== ''[[preview:data-types#float|float]] **polygon.distance2**(//object//, //point//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | | //''point''// | ''[[preview:api:vec2f|vec2f]]'' | | ''[[preview:data-types#float|float]] **polygon.distance2**(//object//, //polygon//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | | //''polygon''// | ''[[preview:data-types#polygon|polygon]]'' | | ---- ==== edgeDistance ==== ''[[preview:data-types#float|float]] **polygon.edgeDistance**(//object//, //point//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | | //''point''// | ''[[preview:api:vec2f|vec2f]]'' | | ''[[preview:data-types#float|float]] **polygon.edgeDistance**(//object//, //polygon//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | | //''polygon''// | ''[[preview:data-types#polygon|polygon]]'' | | ---- ==== edgeDistance2 ==== ''[[preview:data-types#float|float]] **polygon.edgeDistance2**(//object//, //point//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | | //''point''// | ''[[preview:api:vec2f|vec2f]]'' | | ''[[preview:data-types#float|float]] **polygon.edgeDistance2**(//object//, //polygon//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | | //''polygon''// | ''[[preview:data-types#polygon|polygon]]'' | | ---- ==== reverseOrder ==== ''void **polygon.reverseOrder**(//object//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | ---- ==== computeCentroid ==== ''[[preview:api:vec2f|vec2f]] **polygon.computeCentroid**(//object//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | ---- ==== computeArea ==== ''[[preview:data-types#float|float]] **polygon.computeArea**(//object//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | ---- ==== computeAbsoluteArea ==== ''[[preview:data-types#float|float]] **polygon.computeAbsoluteArea**(//object//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | ---- ==== isClockWise ==== ''[[preview:data-types#boolean|boolean]] **polygon.isClockWise**(//object//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | ---- ==== isComplex ==== ''[[preview:data-types#boolean|boolean]] **polygon.isComplex**(//object//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | ---- ==== getMinMax ==== ''void **polygon.getMinMax**(//object//, //outMin//, //outMax//)'' ^ Name ^ Type ^ Description ^ | //''object''// | ''polygon'' | | | //''outMin''// | ''[[preview:api:vec2f|vec2f]]'' | //[[:annotations#out_argument|Out argument]]// | | //''outMax''// | ''[[preview:api:vec2f|vec2f]]'' | //[[:annotations#out_argument|Out argument]]// |