--- title: SVGGeometryElement.getPointAtLength() slug: Web/API/SVGGeometryElement/getPointAtLength tags: - SVG - getPointAtLength translation_of: Web/API/SVGGeometryElement/getPointAtLength ---
SVGGeometryElement.getPointAtLength()
方法沿路径返回给定距离的点。
Note: This method was originally part of the {{domxref("SVGPathElement")}} interface. SVG 2 introduced the {{domxref("SVGGeometryElement")}} interface and moved the property to it.
DOMPoint someElement.getPointAtLength(float distance);
A {{domxref("DOMPoint")}} indicating the point at a given distance along the path.
Specification | Status | Comment |
---|---|---|
{{SpecName("SVG2", "types.html#__svg__SVGGeometryElement__getPointAtLength", "SVGGeometryElement.getTotalLength()")}} | {{Spec2("SVG2")}} | Initial definition |
{{Compat("api.SVGGeometryElement.getPointAtLength")}}