W3C home > Mailing lists > Public > www-svg@w3.org > April 2002

gradient of path point

From: Stefan Goessner \(MecXpert\) <goessner@mecxpert.de>
Date: Tue, 9 Apr 2002 23:08:59 +0200
Message-ID: <000901c1e00a$c5127320$d99a00d9@user>
To: <www-svg@w3.org>
The SVGPathElement object allows to calculate the point p on the path with
respect to the path parameter 'distance' via

getPointAtLength(distance)

see ..
http://www.w3.org/TR/2002/WD-SVG11-20020215/ecmascript-binding.html

It is not uncommon, to be also in need of the path's tangent (gradient) and
possibly the curvature. So two additional method

getTangentAtLength(distance)
getCurvatureAtLength(distance)

would be of great help. Today's SVG implementations should have the
tangential path information for correctly setting markers, so this might be
no great deal.

--
stefan goessner
Received on Tuesday, 9 April 2002 17:02:05 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:22 GMT