mapbox / mapbox/turf-swift

transformRotate does not exist?

Open
#208 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
271
Forks
65
PR merge metrics
No merged PRs in 30d

Description

`transformRotate ` - does not exist?

js:

```
var poly = turf.polygon([[[0,29],[3.5,29],[2.5,32],[0,29]]]);
var options = {pivot: [0, 25]};
var rotatedPoly = turf.transformRotate(poly, 10, options);
```

I want to rotate a polygon and cannot find method.

Is there any other way or rotating an `ImageSource` ?

Contributor guide

Open the contributing guide

Research direction

No file or test is named in the issue. Start by locating the existing geometry transformation APIs and the Swift port’s corresponding Turf.js coverage; done means providing or documenting polygon rotation with the shown pivot and clarifying whether ImageSource rotation is in scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.