---
title: SVGGeometryElement.getPointAtLength()
slug: Web/API/SVGGeometryElement/getPointAtLength
tags:
  - API
  - DOM
  - Method
  - NeedsExample
  - Reference
  - SVG
  - SVG DOM
browser-compat: api.SVGGeometryElement.getPointAtLength
---
{{APIRef("SVG")}}

The
**`SVGGeometryElement.getPointAtLength()`** method returns the
point at a given distance along the path.

## Syntax

```js
DOMPoint someElement.getPointAtLength(float distance);
```

### Parameters

- `distance`
  - : A float referring to the distance along the path.

### Return value

A {{domxref("DOMPoint")}} indicating the point at a given distance along the path.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
