Skip to content

Commit cf8feb2

Browse files
authored
Update README.md
1 parent b52ccec commit cf8feb2

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,21 @@ Package name : `com.ltmx.unitymathematicsextensions`
1616

1717
## Exension Method Syntax
1818
*Old Code :*
19-
> ```C#
20-
> var v1 = math.cos(math.clamp(f.magnitude, 0, 10));
21-
> return v1 * v1;
22-
> ```
19+
```C#
20+
var v1 = math.cos(math.clamp(f.magnitude, 0, 10));
21+
return v1 * v1;
22+
```
2323
*New Code :*
24-
> ```C#
25-
> return f.length().clamp(0, 10).cos().sqr();
26-
> ```
24+
```C#
25+
return f.length().clamp(0, 10).cos().sqr();
26+
```
2727

2828

29+
## Using Declaration
30+
```C#
31+
using static Unity.Mathematics.Math;
32+
```
33+
2934
## Install
3035
#### Method 1 : <br>
3136
1. Copy Git Package URL : `https://github.com/LTMX/Unity.Mathematics-Extensions.git`

0 commit comments

Comments
 (0)