rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvDoublePoint Class Reference

Geometric class. More...

#include <ilviews/base/geometry.h>

List of all members.

Public Member Functions

 IlvDoublePoint (IlDouble x=(IlDouble) 0, IlDouble y=(IlDouble) 0)
 Constructor.
IlDouble getX () const
 Gets the x point coordinate.
IlDouble getY () const
 Gets the y point coordinate.
void move (IlDouble newX, IlDouble newY)
 Moves the point.
int operator!= (const IlvDoublePoint &p) const
 Tests points for inequality.
IlvDoublePointoperator= (const IlvDoublePoint &p)
 Copies a point.
int operator== (const IlvDoublePoint &p) const
 Tests points for equality.
void set (IlDouble newX, IlDouble newY)
 Sets the point coordinates.
void setX (IlDouble newX)
 Sets the x point coordinate.
void setY (IlDouble newY)
 Sets the y point coordinate.
void translate (IlDouble dx, IlDouble dy)
 Moves the object by relative translation.

Detailed Description

Geometric class.

Library: display

The IlvDoublePoint class deals with floating point coordinate values coded on a double-precision floating number.

See also:
IlvPoint, IlvFloatPoint.

Constructor & Destructor Documentation

IlvDoublePoint::IlvDoublePoint ( IlDouble  x = (IlDouble)0,
IlDouble  y = (IlDouble)0 
)

Constructor.

Initializes a new IlvDoublePoint with the indicated coordinates. point. Its parameters represent the x and y coordinates of the floating point.


Member Function Documentation

IlDouble IlvDoublePoint::getX (  )  const

Gets the x point coordinate.

Returns:
The x point coordinate.
IlDouble IlvDoublePoint::getY (  )  const

Gets the y point coordinate.

Returns:
The y point coordinate.
void IlvDoublePoint::move ( IlDouble  newX,
IlDouble  newY 
)

Moves the point.

Parameters:
newX The x point coordinate.
newY The y point coordinate.
int IlvDoublePoint::operator!= ( const IlvDoublePoint p  )  const

Tests points for inequality.

Returns:
0 if p is the same as the current object.
IlvDoublePoint& IlvDoublePoint::operator= ( const IlvDoublePoint p  ) 

Copies a point.

Copies p to the current object.

Parameters:
p The source point.
int IlvDoublePoint::operator== ( const IlvDoublePoint p  )  const

Tests points for equality.

Returns:
0 if p is different from the current object.
void IlvDoublePoint::set ( IlDouble  newX,
IlDouble  newY 
)

Sets the point coordinates.

Parameters:
newX The x point coordinate.
newY The y point coordinate.
void IlvDoublePoint::setX ( IlDouble  newX  ) 

Sets the x point coordinate.

Parameters:
newX The x point coordinate.
void IlvDoublePoint::setY ( IlDouble  newY  ) 

Sets the y point coordinate.

Parameters:
newY The y point coordinate.
void IlvDoublePoint::translate ( IlDouble  dx,
IlDouble  dy 
)

Moves the object by relative translation.

Shifts an existing point to another location by means of a delta-distance approach. That is, you indicate the dx and dy values that represent the distance between the current position of the point and the target future position.

Parameters:
dx The x delta offset.
dy The y delta offset.

© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.