xyPoint-class

0th

Percentile

Class "xyPoint": A class to represent a X/Y coordinate.

This class is used to describe a coordinate in 2-dimensional (X/Y) space

Keywords
classes
Objects from the Class

Objects can be created by calls of the form new("xyPoint", ...).

Slots

x:
Object of class "numeric" The x coordinate
y:
Object of class "numeric" The y coordinate

Methods

getX
Returns the value stored in the x slot
getY
Returns the value stored in the y slot
getPoints
Returns a vector of two numerical values representing the x and y positions
show
Display information about the object in a concise fashion

Aliases
  • xyPoint-class
  • xyPoint
  • getX
  • getY
  • getPoints
  • show,xyPoint-method
  • getPoints,xyPoint-method
  • getX,xyPoint-method
  • getY,xyPoint-method
Examples
   z <- new("xyPoint", x=150, y=30)
   z
   getPoints(z)

   getX(z)
   getY(z)

Documentation reproduced from package Rgraphviz, version 2.16.0, License: EPL

Community examples

Looks like there are no examples yet.