Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3a1179f

Browse files
committed
add mirrorN ref
1 parent c04ecd8 commit 3a1179f

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

‎docs/.vuepress/config.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ module.exports = {
7272
'/references-js/operations/mirrorY',
7373
'/references-js/operations/mirrorZ',
7474
'/references-js/operations/mirrorXYZ',
75+
'/references-js/operations/mirrorN',
7576
'/references-js/operations/rotateX',
7677
'/references-js/operations/rotateY',
7778
'/references-js/operations/rotateZ',

‎docs/references-js/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Shader Park provides a set of built in functions to help you create your sculptu
2626

2727
[setSpace](/references-js/operations/setSpace.html)
2828

29-
[mirrorX](/references-js/operations/mirrorX.html), [mirrorY](/references-js/operations/mirrorY.html), [mirrorZ](/references-js/operations/mirrorX.html), [mirrorXYZ](/references-js/operations/mirrorXYZ.html)
29+
[mirrorX](/references-js/operations/mirrorX.html), [mirrorY](/references-js/operations/mirrorY.html), [mirrorZ](/references-js/operations/mirrorX.html), [mirrorXYZ](/references-js/operations/mirrorXYZ.html), [mirrorN](/references-js/operations/mirrorN.html)
3030

3131
[rotateX](/references-js/operations/rotateX.html), [rotateY](/references-js/operations/rotateY.html), [rotateZ](/references-js/operations/rotateZ.html)
3232

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
### mirrorN()
2+
3+
### Example
4+
5+
<iframe width="100%" height="450px" src="https://shaderpark.netlify.com/sculpture/-N-nMAIqeHnScquHK-tS?example=true&embed=true" frameborder="0"></iframe>
6+
7+
### Description
8+
Mirror all operations along the x, y, and z axis N number of times with the given spacing.
9+
10+
### Syntax
11+
```js
12+
mirrorN(count, spacing);
13+
```
14+
15+
### Parameters
16+
**count** Number: the number of times to mirror the space. Ranges from 0 to any number
17+
**spacing** Float: how much spacing to put between each mirror.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /