Skip to content

Commit

Permalink
📚 (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored May 2, 2020
1 parent 83ffa59 commit f64823b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docs/src/transformations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const translateZ: (perspective: Animated.Adaptable<number>, z: Animated.Adaptabl
```

Convert a translateZ transformation into a scale transformation.
This function only works if there are no transformations of origin.
This function is based on [weak perspective projection](https://en.wikipedia.org/wiki/3D_projection#Weak_perspective_projection) and is not appropriate for every 3D transformations.
Example usage with `transform`.

```tsx
Expand Down Expand Up @@ -192,4 +192,4 @@ transform: [
...translate(vec.add(translation, origin, rotateTranslation(vec.dot(-1, origin), scale))),
{ rotate }
]
```
```

0 comments on commit f64823b

Please sign in to comment.