Learn R Programming

grImport2 (version 0.3-3)

PathSegment-class: Class "PathSegment"

Description

A segment of a path that is not intended to be used directly, merely as a convenience base class for path segment operators.

Arguments

Slots

x:

Object of class "numeric". An x-location.

y:

Object of class "numeric". A y-location.

Methods

applyTransform

signature(object = "PathSegment", tm = "matrix"): When given a 3x3 numeric transformation matrix, the points in the segment are transformed, and produce a new object representing a path segment. Not intended to be used directly on path segments, but objects that inherit from path segments (e.g. the "M", "L", "C", and "Z" operators.

Author

Simon Potter

See Also

PathMoveTo, PathClosePath, PathLineTo, PathCurveTo.