Displaying 1 result from an estimated 1 matches for "showpoint".
Did you mean:
flowpoint
2010 Jan 07
0
setting different environments
...uot;numeric"))
## Objekt
new("point", x=3, y=4)
# new("point", x=17, y=5)
## Generics
setGeneric("xcoord", function(object) standardGeneric("xcoord"))
setGeneric("ycoord", function(object) standardGeneric("ycoord"))
setGeneric("showpoint", function(object) standardGeneric("showpoint"))
setMethod("xcoord", "point", function(object) object@x)
setMethod("ycoord", "point", function(object) object@y)
setMethod("showpoint", "point", function(object) {
cat(&quo...