From f64823b1fd3ba165021c9f62475d9bee5cb12c57 Mon Sep 17 00:00:00 2001 From: William Candillon Date: Sun, 3 May 2020 00:06:54 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9A=20(#256)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/docs/src/transformations.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/docs/src/transformations.mdx b/packages/docs/src/transformations.mdx index 1b423ba0..5c67ef4c 100644 --- a/packages/docs/src/transformations.mdx +++ b/packages/docs/src/transformations.mdx @@ -16,7 +16,7 @@ const translateZ: (perspective: Animated.Adaptable, 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 @@ -192,4 +192,4 @@ transform: [ ...translate(vec.add(translation, origin, rotateTranslation(vec.dot(-1, origin), scale))), { rotate } ] -``` \ No newline at end of file +```