1
0
Fork 0
freesewing/sites/dev/docs/reference/api/point
2025-05-24 08:25:24 +02:00
..
addcircle fix(reference:api): Revert incorrect Example formatting (#367) 2025-05-19 08:04:05 +02:00
addtext fix(reference:api): Revert incorrect Example formatting (#367) 2025-05-19 08:04:05 +02:00
angle chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
asrenderprops chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
attr fix(reference:api): Revert incorrect Example formatting (#367) 2025-05-19 08:04:05 +02:00
clone fix(reference:api): Revert incorrect Example formatting (#367) 2025-05-19 08:04:05 +02:00
copy chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
dist [breaking]: FreeSewing v4 (#7297) 2025-04-01 16:15:20 +02:00
dx chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
dy chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
flipx chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
flipy fix(dev:docs): Improve Point.flipY() example code 2025-05-19 17:26:32 -07:00
rotate chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
setcircle fix(reference:api): Revert incorrect Example formatting (#367) 2025-05-19 08:04:05 +02:00
settext fix(reference:api): Revert incorrect Example formatting (#367) 2025-05-19 08:04:05 +02:00
shift fix(dev:docs): Dimension macro, boundary box, and typo fixes 2025-05-19 17:20:45 -07:00
shiftfractiontowards fix(dev:docs): Dimension macro, boundary box, and typo fixes 2025-05-19 17:20:45 -07:00
shiftoutwards fix(dev:docs): Dimension macro, boundary box, and typo fixes 2025-05-19 17:20:45 -07:00
shifttowards fix(dev:docs): Dimension macro, boundary box, and typo fixes 2025-05-19 17:20:45 -07:00
sitson chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
sitsroughlyon chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
slope fix(dev:docs): Dimension macro, boundary box, and typo fixes 2025-05-19 17:20:45 -07:00
translate fix(dev:docs): Dimension macro, boundary box, and typo fixes 2025-05-19 17:20:45 -07:00
readme.mdx chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00

---
title: Point
---

A Point object represents a point on a 2D plane with an X and Y axis.

## Signature

```js
Point new Point(Number x, Number y)
```

The point constructor takes two arguments:

- `x` : The X-coordinate of the point
- `y` : The Y-coordinate of the point

## Properties

Point objects come with the following properties:

- `x` : The X-coordinate of the point
- `y` : The Y-coordinate of the point
- `attributes` : An [Attributes](/reference/api/attributes) instance holding the point's attributes

:::note RELATED
See [Using Attributes](/howtos/code/attributes)
for information about custom Attributes that can be used with Points.
:::

## Example

<Example caption="Example of the Point constructor">
```js
({ Point, points, part }) => {
  points.example = new Point(0,0)
    .addCircle(10)

  return part
}
```
</Example>

## Methods

A Point object exposes the following methods:

<ReadMore />