iText 9.0.0 API
iText.Kernel.Geom.Point Class Reference

Class that represent point object with x and y coordinates. More...

Inheritance diagram for iText.Kernel.Geom.Point:

Public Member Functions

  Point ()
  Instantiates a new Point instance with 0 x and y. More...
 
  Point (double x, double y)
  Instantiates a new Point instance based on passed x and y. More...
 
virtual double  GetX ()
  Gets x coordinate of the point. More...
 
virtual double  GetY ()
  Gets y coordinate of the point. More...
 
virtual iText.Kernel.Geom.Point  GetLocation ()
  Gets location of point by creating a new copy. More...
 
virtual void  SetLocation (double x, double y)
  Sets x and y double coordinates of the point. More...
 
virtual void  Move (double dx, double dy)
  Moves the point by the specified offset. More...
 
virtual double  Distance (double px, double py)
  The distance between this point and the second point which is defined by passed x and y coordinates. More...
 
virtual double  Distance (iText.Kernel.Geom.Point p)
  The distance between this point and the second point. More...
 
override bool  Equals (Object obj)
 
override String  ToString ()
 
override int  GetHashCode ()
 
virtual Object  Clone ()
 

Detailed Description

Class that represent point object with x and y coordinates.

Constructor & Destructor Documentation

◆ Point() [1/2]

iText.Kernel.Geom.Point.Point ( )
inline

Instantiates a new Point instance with 0 x and y.

◆ Point() [2/2]

iText.Kernel.Geom.Point.Point ( double  x,
double  y 
)
inline

Instantiates a new Point instance based on passed x and y.

Parameters
x the x coordinates of the point
y the y coordinates of the point

Member Function Documentation

◆ Distance() [1/2]

virtual double iText.Kernel.Geom.Point.Distance ( double  px,
double  py 
)
inlinevirtual

The distance between this point and the second point which is defined by passed x and y coordinates.

Parameters
px the x coordinate of the second point
py the y coordinate of the second point
Returns
the distance between points

◆ Distance() [2/2]

virtual double iText.Kernel.Geom.Point.Distance ( iText.Kernel.Geom.Point  p )
inlinevirtual

The distance between this point and the second point.

Parameters
p the second point to calculate distance
Returns
the distance between points

◆ GetLocation()

virtual iText.Kernel.Geom.Point iText.Kernel.Geom.Point.GetLocation ( )
inlinevirtual

Gets location of point by creating a new copy.

Returns
the copy of this point

◆ GetX()

virtual double iText.Kernel.Geom.Point.GetX ( )
inlinevirtual

Gets x coordinate of the point.

Returns
the x coordinate

◆ GetY()

virtual double iText.Kernel.Geom.Point.GetY ( )
inlinevirtual

Gets y coordinate of the point.

Returns
the y coordinate

◆ Move()

virtual void iText.Kernel.Geom.Point.Move ( double  dx,
double  dy 
)
inlinevirtual

Moves the point by the specified offset.

Parameters
dx the x-axis offset
dy the y-axis offset

◆ SetLocation()

virtual void iText.Kernel.Geom.Point.SetLocation ( double  x,
double  y 
)
inlinevirtual

Sets x and y double coordinates of the point.

Parameters
x the x coordinate
y the y coordinate