paths.js
No description.

File Location

/goog/math/paths.js


Public Protected Private

Global Functions

goog.math.paths.createArrow(abaHeadbHead) !goog.math.Path
Defines an arrow.
Arguments:
a : goog.math.Coordinate
Point A.
b : goog.math.Coordinate
Point B.
aHead : ?number
The size of the arrow head at point A. 0 omits the head.
bHead : ?number
The size of the arrow head at point B. 0 omits the head.
Returns: !goog.math.Path  The path.
code »
goog.math.paths.createRegularNGon(centervertexn) !goog.math.Path
Defines a regular n-gon by specifing the center, a vertex, and the total number of vertices.
Arguments:
center : goog.math.Coordinate
The center point.
vertex : goog.math.Coordinate
The vertex, which implicitly defines a radius as well.
n : number
The number of vertices.
Returns: !goog.math.Path  The path.
code »

Directory math

File Reference