User Tools

Site Tools


preview:api:polygon

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
preview:api:polygon [2020/05/22 12:43] maximepreview:api:polygon [2023/12/12 12:16] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 **Category**: Data structure **Category**: Data structure
 +
  
  
Line 9: Line 10:
  
 ==== containsPoint ==== ==== containsPoint ====
-''boolean **polygon.containsPoint**(//object//, //point//)''+ 
 +''[[preview:data-types#boolean|boolean]] **polygon.containsPoint**(//object//, //point//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
Line 18: Line 20:
  
 ==== getClosestPoint ==== ==== getClosestPoint ====
 +
 ''[[preview:api:vec2f|vec2f]] **polygon.getClosestPoint**(//object//, //point//)'' ''[[preview:api:vec2f|vec2f]] **polygon.getClosestPoint**(//object//, //point//)''
  
Line 29: Line 32:
 | //''object''// | ''polygon'' |  | | //''object''// | ''polygon'' |  |
 | //''point''// | ''[[preview:api:vec2f|vec2f]]'' |  | | //''point''// | ''[[preview:api:vec2f|vec2f]]'' |  |
-| //''outPosition''// | ''float'' | Out argument |+| //''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 ==== ==== distance2 ====
-''float **polygon.distance2**(//object//, //point//)''+ 
 +''[[preview:data-types#float|float]] **polygon.distance2**(//object//, //point//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
 | //''object''// | ''polygon'' |  | | //''object''// | ''polygon'' |  |
 | //''point''// | ''[[preview:api:vec2f|vec2f]]'' |  | | //''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]]'' |  |
  
 ---- ----
  
-==== distance ==== +==== edgeDistance ==== 
-''float **polygon.distance**(//object//, //point//)''+ 
 +''[[preview:data-types#float|float]] **polygon.edgeDistance**(//object//, //point//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
 | //''object''// | ''polygon'' |  | | //''object''// | ''polygon'' |  |
 | //''point''// | ''[[preview:api:vec2f|vec2f]]'' |  | | //''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 ==== ==== reverseOrder ====
 +
 ''void **polygon.reverseOrder**(//object//)'' ''void **polygon.reverseOrder**(//object//)''
  
Line 60: Line 110:
  
 ==== computeCentroid ==== ==== computeCentroid ====
 +
 ''[[preview:api:vec2f|vec2f]] **polygon.computeCentroid**(//object//)'' ''[[preview:api:vec2f|vec2f]] **polygon.computeCentroid**(//object//)''
  
Line 68: Line 119:
  
 ==== computeArea ==== ==== computeArea ====
-''float **polygon.computeArea**(//object//)''+ 
 +''[[preview:data-types#float|float]] **polygon.computeArea**(//object//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
Line 76: Line 128:
  
 ==== computeAbsoluteArea ==== ==== computeAbsoluteArea ====
-''float **polygon.computeAbsoluteArea**(//object//)''+ 
 +''[[preview:data-types#float|float]] **polygon.computeAbsoluteArea**(//object//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
Line 84: Line 137:
  
 ==== isClockWise ==== ==== isClockWise ====
-''boolean **polygon.isClockWise**(//object//)''+ 
 +''[[preview:data-types#boolean|boolean]] **polygon.isClockWise**(//object//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
Line 92: Line 146:
  
 ==== isComplex ==== ==== isComplex ====
-''boolean **polygon.isComplex**(//object//)''+ 
 +''[[preview:data-types#boolean|boolean]] **polygon.isComplex**(//object//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
Line 100: Line 155:
  
 ==== getMinMax ==== ==== getMinMax ====
 +
 ''void **polygon.getMinMax**(//object//, //outMin//, //outMax//)'' ''void **polygon.getMinMax**(//object//, //outMin//, //outMax//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
 | //''object''// | ''polygon'' |  | | //''object''// | ''polygon'' |  |
-| //''outMin''// | ''[[preview:api:vec2f|vec2f]]'' | Out argument | +| //''outMin''// | ''[[preview:api:vec2f|vec2f]]'' | //[[:annotations#out_argument|Out argument]]// 
-| //''outMax''// | ''[[preview:api:vec2f|vec2f]]'' | Out argument |+| //''outMax''// | ''[[preview:api:vec2f|vec2f]]'' | //[[:annotations#out_argument|Out argument]]// | 
  
preview/api/polygon.txt · Last modified: 2023/12/12 12:16 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki