{"size": 654, "ext": "scrbl", "max_stars_repo_path": "draw-doc/scribblings/draw/point-class.scrbl", "max_stars_repo_name": "Bogdanp/draw", "max_stars_repo_stars_event_min_datetime": "2015-03-24T15:04:13.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-25T03:43:21.000Z", "max_issues_repo_path": "draw-doc/scribblings/draw/point-class.scrbl", "max_issues_repo_name": "Bogdanp/draw", "max_issues_repo_issues_event_min_datetime": "2015-01-30T20:28:55.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-02T08:43:11.000Z", "max_forks_repo_path": "draw-doc/scribblings/draw/point-class.scrbl", "max_forks_repo_name": "Bogdanp/draw", "max_forks_repo_forks_event_min_datetime": "2015-01-29T22:12:33.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-17T09:51:49.000Z"}
{"max_stars_count": 15, "max_issues_count": 37, "max_forks_count": 21, "avg_line_length": 15.5714285714, "max_line_length": 68, "alphanum_fraction": 0.5642201835}
#lang scribble/doc
@(require "common.rkt")

@defclass/title[point% object% ()]{

A @racket[point%] is used for certain drawing commands. It
 encapsulates two real numbers.

@defconstructor*/make[(()
                       ([x real?]
                        [y real?]))]{

Creates a point. If @racket[x] and @racket[y] are not supplied, they
 are set to @racket[0].
}

@defmethod[(get-x)
           real?]{
Gets the point x-value.

}

@defmethod[(get-y)
           real?]{
Gets the point y-value.

}

@defmethod[(set-x [x real?])
           void?]{
Sets the point x-value.

}

@defmethod[(set-y [y real?])
           void?]{

Sets the point y-value.

}}

