Foxit PDF SDK
FSQuadPoints Class Reference

Inherits NSObject.

Instance Methods

(id) - init
 Constructor.

 
(id) - initWithFirst:second:third:fourth:
 Constructor, with parameters.
More...
 
(id) - initWithQuad_points:
 Constructor, with another quadrilateral points object.
More...
 
(void) - set:second:third:fourth:
 Set value.
More...
 

Properties

FSPointFfirst
 First point of quadrilateral, in .

 
FSPointFfourth
 Fourth point of quadrilateral, in .

 
FSPointFsecond
 Second point of quadrilateral, in .

 
FSPointFthird
 Third point of quadrilateral, in .

 

Detailed Description

This class represents points of a quadrilateral, in . The order of points in a quadrilateral should be as follows:

  • The first point is the point in left-top corner of the quadrilateral.
  • The second point is the point in right-top corner of the quadrilateral.
  • The third point is the point in left-bottom corner of the quadrilateral.
  • The fourth point is the point in right-bottom corner of the quadrilateral.


Method Documentation

◆ initWithFirst:second:third:fourth:()

- (id) initWithFirst: (FSPointF*)  first
second: (FSPointF*)  second
third: (FSPointF*)  third
fourth: (FSPointF*)  fourth 

Constructor, with parameters.

Parameters
[in]firstFirst point of the quadrilateral, in .
[in]secondSecond point of the quadrilateral, in .
[in]thirdThird point of the quadrilateral, in .
[in]fourthFourth point of the quadrilateral, in .

◆ initWithQuad_points:()

- (id) initWithQuad_points: (FSQuadPoints*)  quad_points

Constructor, with another quadrilateral points object.

Parameters
[in]quad_pointsAnother quadrilateral points object.

◆ set:second:third:fourth:()

- (void) set: (FSPointF*)  first
second: (FSPointF*)  second
third: (FSPointF*)  third
fourth: (FSPointF*)  fourth 

Set value.

Parameters
[in]firstFirst point of the quadrilateral, in .
[in]secondSecond point of the quadrilateral, in .
[in]thirdThird point of the quadrilateral, in .
[in]fourthFourth point of the quadrilateral, in .
Returns
None.