@tlua/gmod 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/achievementicon.d.tlua +0 -1
- package/types/achievements.d.tlua +15 -16
- package/types/ai.d.tlua +5 -6
- package/types/ai_schedule.d.tlua +0 -1
- package/types/ai_task.d.tlua +0 -1
- package/types/angle.d.tlua +18 -19
- package/types/avatarimage.d.tlua +0 -1
- package/types/awesomium.d.tlua +0 -1
- package/types/baseclass.d.tlua +1 -3
- package/types/bf_read.d.tlua +10 -12
- package/types/bit.d.tlua +11 -12
- package/types/button.d.tlua +0 -1
- package/types/cam.d.tlua +16 -17
- package/types/ceffectdata.d.tlua +31 -33
- package/types/chat.d.tlua +5 -6
- package/types/checkbutton.d.tlua +0 -1
- package/types/cleanup.d.tlua +7 -8
- package/types/cluaemitter.d.tlua +11 -13
- package/types/clualocomotion.d.tlua +39 -41
- package/types/cluaparticle.d.tlua +43 -45
- package/types/cmovedata.d.tlua +46 -48
- package/types/cnavarea.d.tlua +76 -78
- package/types/cnavladder.d.tlua +21 -23
- package/types/cnewparticleeffect.d.tlua +25 -27
- package/types/color.d.tlua +28 -29
- package/types/concommand.d.tlua +4 -5
- package/types/constraint.d.tlua +28 -29
- package/types/construct.d.tlua +1 -2
- package/types/contentheader.d.tlua +1 -3
- package/types/contenticon.d.tlua +7 -9
- package/types/contentsidebar.d.tlua +2 -4
- package/types/contentsidebartoolbox.d.tlua +0 -1
- package/types/contextbase.d.tlua +2 -4
- package/types/controlpanel.d.tlua +11 -14
- package/types/controlpresets.d.tlua +11 -13
- package/types/convar.d.tlua +15 -17
- package/types/cookie.d.tlua +3 -4
- package/types/coroutine.d.tlua +7 -8
- package/types/crecipientfilter.d.tlua +15 -17
- package/types/csent.d.tlua +0 -1
- package/types/csoundpatch.d.tlua +13 -15
- package/types/ctakedamageinfo.d.tlua +32 -34
- package/types/ctrllistbox.d.tlua +0 -1
- package/types/ctrlnumpad.d.tlua +5 -7
- package/types/cusercmd.d.tlua +26 -28
- package/types/custom_entity_fields.d.tlua +0 -1
- package/types/cvars.d.tlua +6 -7
- package/types/dadjustablemodelpanel.d.tlua +5 -7
- package/types/dalphabar.d.tlua +1 -3
- package/types/dbinder.d.tlua +2 -4
- package/types/dbubblecontainer.d.tlua +0 -2
- package/types/dbutton.d.tlua +6 -8
- package/types/dcategoryheader.d.tlua +0 -1
- package/types/dcategorylist.d.tlua +0 -1
- package/types/dcheckbox.d.tlua +3 -5
- package/types/dcheckboxlabel.d.tlua +9 -10
- package/types/dcollapsiblecategory.d.tlua +21 -23
- package/types/dcolorbutton.d.tlua +5 -7
- package/types/dcolorcombo.d.tlua +3 -5
- package/types/dcolorcube.d.tlua +11 -13
- package/types/dcolormixer.d.tlua +25 -27
- package/types/dcolorpalette.d.tlua +21 -23
- package/types/dcolumnsheet.d.tlua +3 -5
- package/types/dcombobox.d.tlua +15 -17
- package/types/ddragbase.d.tlua +11 -13
- package/types/ddrawer.d.tlua +6 -8
- package/types/debug.d.tlua +16 -19
- package/types/debugoverlay.d.tlua +11 -12
- package/types/dentityproperties.d.tlua +3 -5
- package/types/derma.d.tlua +10 -11
- package/types/dexpandbutton.d.tlua +1 -3
- package/types/dfilebrowser.d.tlua +20 -21
- package/types/dform.d.tlua +16 -18
- package/types/dframe.d.tlua +24 -25
- package/types/dgrid.d.tlua +9 -11
- package/types/dhorizontaldivider.d.tlua +18 -20
- package/types/dhorizontalscroller.d.tlua +9 -11
- package/types/dhscrollbar.d.tlua +9 -11
- package/types/dhtml.d.tlua +6 -8
- package/types/dhtmlcontrols.d.tlua +5 -6
- package/types/diconbrowser.d.tlua +9 -11
- package/types/diconlayout.d.tlua +16 -18
- package/types/dimage.d.tlua +17 -20
- package/types/dimagebutton.d.tlua +9 -10
- package/types/dkillicon.d.tlua +0 -1
- package/types/dlabel.d.tlua +31 -33
- package/types/dlabeleditable.d.tlua +3 -5
- package/types/dlabelurl.d.tlua +8 -10
- package/types/dlistbox.d.tlua +6 -8
- package/types/dlistboxitem.d.tlua +2 -4
- package/types/dlistlayout.d.tlua +0 -1
- package/types/dlistview.d.tlua +32 -34
- package/types/dlistview_column.d.tlua +12 -14
- package/types/dlistview_columnplain.d.tlua +0 -1
- package/types/dlistview_draggerbar.d.tlua +0 -1
- package/types/dlistview_line.d.tlua +11 -13
- package/types/dlistviewheaderlabel.d.tlua +0 -1
- package/types/dlistviewlabel.d.tlua +0 -1
- package/types/dlistviewline.d.tlua +0 -1
- package/types/dmenu.d.tlua +23 -28
- package/types/dmenubar.d.tlua +2 -7
- package/types/dmenuoption.d.tlua +11 -13
- package/types/dmenuoptioncvar.d.tlua +4 -6
- package/types/dmodelpanel.d.tlua +20 -22
- package/types/dmodelselect.d.tlua +0 -2
- package/types/dmodelselectmulti.d.tlua +0 -2
- package/types/dnotify.d.tlua +8 -10
- package/types/dnumberscratch.d.tlua +24 -26
- package/types/dnumberwang.d.tlua +14 -16
- package/types/dnumpad.d.tlua +0 -1
- package/types/dnumslider.d.tlua +17 -18
- package/types/dpanel.d.tlua +12 -14
- package/types/dpanellist.d.tlua +11 -12
- package/types/dpaneloverlay.d.tlua +5 -7
- package/types/dpanelselect.d.tlua +0 -1
- package/types/dpanpanel.d.tlua +4 -6
- package/types/dprogress.d.tlua +1 -3
- package/types/dproperties.d.tlua +2 -4
- package/types/dproperty_boolean.d.tlua +0 -1
- package/types/dproperty_combo.d.tlua +1 -3
- package/types/dproperty_entity.d.tlua +0 -1
- package/types/dproperty_float.d.tlua +0 -1
- package/types/dproperty_generic.d.tlua +3 -5
- package/types/dproperty_int.d.tlua +0 -1
- package/types/dproperty_vectorcolor.d.tlua +0 -1
- package/types/dpropertysheet.d.tlua +15 -17
- package/types/dragndrop.d.tlua +10 -11
- package/types/draw.d.tlua +10 -12
- package/types/drgbpicker.d.tlua +2 -4
- package/types/drive.d.tlua +11 -13
- package/types/dscrollbargrip.d.tlua +0 -1
- package/types/dscrollpanel.d.tlua +10 -11
- package/types/dshape.d.tlua +5 -7
- package/types/dsizetocontents.d.tlua +3 -5
- package/types/dslider.d.tlua +26 -28
- package/types/dsprite.d.tlua +7 -9
- package/types/dtab.d.tlua +6 -8
- package/types/dtextentry.d.tlua +41 -43
- package/types/dtilelayout.d.tlua +19 -21
- package/types/dtooltip.d.tlua +4 -6
- package/types/dtree.d.tlua +14 -16
- package/types/dtree_node.d.tlua +66 -68
- package/types/dtree_node_button.d.tlua +0 -1
- package/types/duplicator.d.tlua +29 -31
- package/types/dverticaldivider.d.tlua +21 -23
- package/types/dvscrollbar.d.tlua +9 -11
- package/types/editablepanel.d.tlua +0 -1
- package/types/effect.d.tlua +2 -4
- package/types/effects.d.tlua +6 -7
- package/types/engine.d.tlua +21 -22
- package/types/entity.d.tlua +643 -674
- package/types/ents.d.tlua +19 -25
- package/types/enums.d.tlua +0 -1
- package/types/file.d.tlua +39 -40
- package/types/file_class.d.tlua +0 -1
- package/types/fingerposer.d.tlua +0 -1
- package/types/fingervar.d.tlua +0 -1
- package/types/frame.d.tlua +0 -1
- package/types/frame_blend.d.tlua +7 -8
- package/types/game.d.tlua +39 -40
- package/types/gameevent.d.tlua +0 -1
- package/types/gamemode.d.tlua +2 -4
- package/types/global.d.tlua +0 -18
- package/types/gm.d.tlua +266 -268
- package/types/gmod.d.tlua +0 -1
- package/types/gmsave.d.tlua +4 -5
- package/types/gui.d.tlua +21 -22
- package/types/gwen.d.tlua +3 -4
- package/types/halo.d.tlua +2 -3
- package/types/hammer.d.tlua +0 -1
- package/types/hook.d.tlua +4 -5
- package/types/html.d.tlua +0 -1
- package/types/http.d.tlua +1 -2
- package/types/iconeditor.d.tlua +9 -11
- package/types/igmodaudiochannel.d.tlua +40 -42
- package/types/imagecheckbox.d.tlua +2 -4
- package/types/imaterial.d.tlua +25 -27
- package/types/imesh.d.tlua +4 -6
- package/types/input.d.tlua +22 -25
- package/types/invalidateinternalentitycache.d.tlua +0 -1
- package/types/irestore.d.tlua +8 -10
- package/types/isave.d.tlua +8 -10
- package/types/itexture.d.tlua +9 -11
- package/types/ivideowriter.d.tlua +4 -6
- package/types/jit.d.tlua +16 -17
- package/types/killicon.d.tlua +7 -8
- package/types/label.d.tlua +0 -1
- package/types/language.d.tlua +1 -2
- package/types/list.d.tlua +8 -9
- package/types/makeballoon.d.tlua +0 -1
- package/types/markup.d.tlua +2 -3
- package/types/markupobject.d.tlua +4 -6
- package/types/material.d.tlua +0 -1
- package/types/math.d.tlua +83 -84
- package/types/matproxy.d.tlua +3 -4
- package/types/matselect.d.tlua +9 -11
- package/types/menu.d.tlua +0 -1
- package/types/menubar.d.tlua +2 -3
- package/types/mesh.d.tlua +19 -20
- package/types/modelimage.d.tlua +0 -1
- package/types/motionsensor.d.tlua +10 -11
- package/types/navmesh.d.tlua +26 -27
- package/types/net.d.tlua +51 -53
- package/types/nextbot.d.tlua +34 -37
- package/types/notification.d.tlua +2 -3
- package/types/npc.d.tlua +180 -182
- package/types/numpad.d.tlua +7 -8
- package/types/os.d.tlua +3 -5
- package/types/package.d.tlua +0 -1
- package/types/panel.d.tlua +329 -331
- package/types/panellist.d.tlua +0 -1
- package/types/pathfollower.d.tlua +30 -32
- package/types/permissions.d.tlua +6 -7
- package/types/physcollide.d.tlua +2 -4
- package/types/physenv.d.tlua +11 -12
- package/types/physobj.d.tlua +77 -79
- package/types/pixelvis_handle_t.d.tlua +0 -1
- package/types/player.d.tlua +288 -293
- package/types/player_manager.d.tlua +13 -14
- package/types/preseteditor.d.tlua +0 -1
- package/types/presets.d.tlua +6 -7
- package/types/projectedtexture.d.tlua +47 -49
- package/types/properties.d.tlua +5 -6
- package/types/propselect.d.tlua +3 -5
- package/types/radiobutton.d.tlua +0 -1
- package/types/render.d.tlua +142 -143
- package/types/resource.d.tlua +2 -3
- package/types/richtext.d.tlua +0 -1
- package/types/sandbox.d.tlua +52 -54
- package/types/saverestore.d.tlua +12 -13
- package/types/schedule.d.tlua +5 -7
- package/types/scripted_ents.d.tlua +9 -12
- package/types/search.d.tlua +1 -2
- package/types/serverlist.d.tlua +7 -8
- package/types/slidebar.d.tlua +0 -1
- package/types/slider.d.tlua +0 -1
- package/types/sound.d.tlua +10 -11
- package/types/spawnicon.d.tlua +6 -8
- package/types/spawnmenu.d.tlua +23 -25
- package/types/spawnmenucontentpanel.d.tlua +3 -5
- package/types/sql.d.tlua +9 -10
- package/types/stack.d.tlua +4 -6
- package/types/steamworks.d.tlua +18 -19
- package/types/string.d.tlua +46 -50
- package/types/structures.d.tlua +0 -7
- package/types/surface.d.tlua +34 -35
- package/types/surfaceinfo.d.tlua +4 -6
- package/types/system.d.tlua +10 -11
- package/types/table.d.tlua +45 -48
- package/types/task.d.tlua +8 -10
- package/types/team.d.tlua +19 -20
- package/types/textentry.d.tlua +0 -1
- package/types/tgaimage.d.tlua +0 -1
- package/types/timer.d.tlua +14 -15
- package/types/tool.d.tlua +42 -46
- package/types/ugcpublishwindow.d.tlua +7 -9
- package/types/umsg.d.tlua +12 -13
- package/types/undo.d.tlua +10 -11
- package/types/urllabel.d.tlua +0 -1
- package/types/usermessage.d.tlua +2 -3
- package/types/utf8.d.tlua +7 -8
- package/types/util.d.tlua +90 -95
- package/types/vector.d.tlua +36 -37
- package/types/vehicle.d.tlua +48 -51
- package/types/vgui.d.tlua +14 -19
- package/types/video.d.tlua +0 -1
- package/types/vmatrix.d.tlua +35 -36
- package/types/weapon.d.tlua +81 -84
- package/types/weapons.d.tlua +5 -7
- package/types/widgets.d.tlua +1 -2
- package/types/workshopfilebase.d.tlua +4 -6
package/types/math.d.tlua
CHANGED
|
@@ -40,18 +40,21 @@
|
|
|
40
40
|
*/
|
|
41
41
|
interface MathLib {
|
|
42
42
|
ease: MatheaseLib;
|
|
43
|
+
|
|
43
44
|
/**
|
|
44
45
|
* Calculates the difference between two angles.
|
|
45
46
|
* @realm shared and menu
|
|
46
47
|
* @source https://wiki.facepunch.com/gmod/math.AngleDifference
|
|
47
48
|
*/
|
|
48
49
|
AngleDifference(a: number, b: number): number;
|
|
50
|
+
|
|
49
51
|
/**
|
|
50
52
|
* Gradually approaches the target value by the specified amount.
|
|
51
53
|
* @realm shared and menu
|
|
52
54
|
* @source https://wiki.facepunch.com/gmod/math.Approach
|
|
53
55
|
*/
|
|
54
56
|
Approach(current: number, target: number, change: number): number;
|
|
57
|
+
|
|
55
58
|
/**
|
|
56
59
|
* Increments an angle towards another by specified rate.
|
|
57
60
|
*
|
|
@@ -62,30 +65,35 @@ interface MathLib {
|
|
|
62
65
|
* @source https://wiki.facepunch.com/gmod/math.ApproachAngle
|
|
63
66
|
*/
|
|
64
67
|
ApproachAngle(currentAngle: number, targetAngle: number, rate: number): number;
|
|
68
|
+
|
|
65
69
|
/**
|
|
66
70
|
* Basic code for Bézier-Spline algorithm.
|
|
67
71
|
* @realm shared and menu
|
|
68
72
|
* @source https://wiki.facepunch.com/gmod/math.BSplinePoint
|
|
69
73
|
*/
|
|
70
74
|
BSplinePoint(fraction: number, points: table, fractionMax: number): Vector;
|
|
75
|
+
|
|
71
76
|
/**
|
|
72
77
|
* Converts a binary string into a number.
|
|
73
78
|
* @realm shared and menu
|
|
74
79
|
* @source https://wiki.facepunch.com/gmod/math.BinToInt
|
|
75
80
|
*/
|
|
76
81
|
BinToInt(string: string): number;
|
|
82
|
+
|
|
77
83
|
/**
|
|
78
84
|
* Cubic Hermite spline algorithm.
|
|
79
85
|
* @realm shared and menu
|
|
80
86
|
* @source https://wiki.facepunch.com/gmod/math.CHSpline
|
|
81
87
|
*/
|
|
82
88
|
CHSpline(frac: number, point0: Vector, tan0: Vector, point1: Vector, tan1: Vector): Vector;
|
|
89
|
+
|
|
83
90
|
/**
|
|
84
91
|
* Clamps a number between a minimum and maximum value.
|
|
85
92
|
* @realm shared and menu
|
|
86
93
|
* @source https://wiki.facepunch.com/gmod/math.Clamp
|
|
87
94
|
*/
|
|
88
95
|
Clamp(input: number, min: number, max: number): number;
|
|
96
|
+
|
|
89
97
|
/**
|
|
90
98
|
* Lerp point between 4 control points with cubic bezier.
|
|
91
99
|
*
|
|
@@ -95,6 +103,7 @@ interface MathLib {
|
|
|
95
103
|
* @source https://wiki.facepunch.com/gmod/math.CubicBezier
|
|
96
104
|
*/
|
|
97
105
|
CubicBezier(frac: number, p0: Vector, p1: Vector, p2: Vector, p3: Vector): Vector;
|
|
106
|
+
|
|
98
107
|
/**
|
|
99
108
|
* Returns the difference between two points in 2D space. Alias of [math.Distance](https://wiki.facepunch.com/gmod/math.Distance).
|
|
100
109
|
*
|
|
@@ -103,12 +112,14 @@ interface MathLib {
|
|
|
103
112
|
* @deprecated You should use math.Distance instead
|
|
104
113
|
*/
|
|
105
114
|
Dist(x1: number, y1: number, x2: number, y2: number): number;
|
|
115
|
+
|
|
106
116
|
/**
|
|
107
117
|
* Returns the difference between two points in 2D space.
|
|
108
118
|
* @realm shared and menu
|
|
109
119
|
* @source https://wiki.facepunch.com/gmod/math.Distance
|
|
110
120
|
*/
|
|
111
121
|
Distance(x1: number, y1: number, x2: number, y2: number): number;
|
|
122
|
+
|
|
112
123
|
/**
|
|
113
124
|
* Returns the squared difference between two points in 2D space. This is computationally faster than [math.Distance](https://wiki.facepunch.com/gmod/math.Distance).
|
|
114
125
|
*
|
|
@@ -116,24 +127,28 @@ interface MathLib {
|
|
|
116
127
|
* @source https://wiki.facepunch.com/gmod/math.DistanceSqr
|
|
117
128
|
*/
|
|
118
129
|
DistanceSqr(x1: number, y1: number, x2: number, y2: number): number;
|
|
130
|
+
|
|
119
131
|
/**
|
|
120
132
|
* Calculates the progress of a value fraction, taking in to account given easing fractions
|
|
121
133
|
* @realm shared and menu
|
|
122
134
|
* @source https://wiki.facepunch.com/gmod/math.EaseInOut
|
|
123
135
|
*/
|
|
124
136
|
EaseInOut(progress: number, easeIn?: number, easeOut?: number): number;
|
|
137
|
+
|
|
125
138
|
/**
|
|
126
139
|
* Simple function that calculates [factorial](https://en.wikipedia.org/wiki/Factorial) of a whole number.
|
|
127
140
|
* @realm shared and menu
|
|
128
141
|
* @source https://wiki.facepunch.com/gmod/math.Factorial
|
|
129
142
|
*/
|
|
130
143
|
Factorial(val_in: number): number;
|
|
144
|
+
|
|
131
145
|
/**
|
|
132
146
|
* Converts an integer to a binary (base-2) string.
|
|
133
147
|
* @realm shared and menu
|
|
134
148
|
* @source https://wiki.facepunch.com/gmod/math.IntToBin
|
|
135
149
|
*/
|
|
136
150
|
IntToBin(int: number): string;
|
|
151
|
+
|
|
137
152
|
/**
|
|
138
153
|
* Checks if two floating point numbers are nearly equal.
|
|
139
154
|
*
|
|
@@ -144,12 +159,14 @@ interface MathLib {
|
|
|
144
159
|
* @source https://wiki.facepunch.com/gmod/math.IsNearlyEqual
|
|
145
160
|
*/
|
|
146
161
|
IsNearlyEqual(a: number, b: number, tolerance?: number): boolean;
|
|
162
|
+
|
|
147
163
|
/**
|
|
148
164
|
* Normalizes angle, so it returns value between -180 and 180.
|
|
149
165
|
* @realm shared and menu
|
|
150
166
|
* @source https://wiki.facepunch.com/gmod/math.NormalizeAngle
|
|
151
167
|
*/
|
|
152
168
|
NormalizeAngle(angle: number): number;
|
|
169
|
+
|
|
153
170
|
/**
|
|
154
171
|
* Lerp point between 3 control points with quadratic bezier.
|
|
155
172
|
*
|
|
@@ -159,6 +176,7 @@ interface MathLib {
|
|
|
159
176
|
* @source https://wiki.facepunch.com/gmod/math.QuadraticBezier
|
|
160
177
|
*/
|
|
161
178
|
QuadraticBezier(frac: number, p0: Vector, p1: Vector, p2: Vector): Vector;
|
|
179
|
+
|
|
162
180
|
/**
|
|
163
181
|
* Returns a random float between min and max.
|
|
164
182
|
*
|
|
@@ -168,18 +186,21 @@ interface MathLib {
|
|
|
168
186
|
* @source https://wiki.facepunch.com/gmod/math.Rand
|
|
169
187
|
*/
|
|
170
188
|
Rand(min: number, max: number): number;
|
|
189
|
+
|
|
171
190
|
/**
|
|
172
191
|
* Remaps the value from one range to another
|
|
173
192
|
* @realm shared and menu
|
|
174
193
|
* @source https://wiki.facepunch.com/gmod/math.Remap
|
|
175
194
|
*/
|
|
176
195
|
Remap(value: number, inMin: number, inMax: number, outMin: number, outMax: number): number;
|
|
196
|
+
|
|
177
197
|
/**
|
|
178
198
|
* Rounds the given value to the nearest whole number or to the given decimal places.
|
|
179
199
|
* @realm shared and menu
|
|
180
200
|
* @source https://wiki.facepunch.com/gmod/math.Round
|
|
181
201
|
*/
|
|
182
202
|
Round(value: number, decimals?: number): number;
|
|
203
|
+
|
|
183
204
|
/**
|
|
184
205
|
* Returns the mathematical negative/positive sign of the input number.
|
|
185
206
|
*
|
|
@@ -187,48 +208,56 @@ interface MathLib {
|
|
|
187
208
|
* @source https://wiki.facepunch.com/gmod/math.Sign
|
|
188
209
|
*/
|
|
189
210
|
Sign(value: number): number;
|
|
211
|
+
|
|
190
212
|
/**
|
|
191
213
|
* Snaps a number to the closest multiplicative of given number. See also [Angle:SnapTo](https://wiki.facepunch.com/gmod/Angle:SnapTo).
|
|
192
214
|
* @realm shared and menu
|
|
193
215
|
* @source https://wiki.facepunch.com/gmod/math.SnapTo
|
|
194
216
|
*/
|
|
195
217
|
SnapTo(input: number, snapTo: number): number;
|
|
218
|
+
|
|
196
219
|
/**
|
|
197
220
|
* Returns the fraction of where the current time is relative to the start and end times
|
|
198
221
|
* @realm shared and menu
|
|
199
222
|
* @source https://wiki.facepunch.com/gmod/math.TimeFraction
|
|
200
223
|
*/
|
|
201
224
|
TimeFraction(start: number, _end: number, current: number): number;
|
|
225
|
+
|
|
202
226
|
/**
|
|
203
227
|
* Trim unwanted decimal places.
|
|
204
228
|
* @realm shared and menu
|
|
205
229
|
* @source https://wiki.facepunch.com/gmod/math.Truncate
|
|
206
230
|
*/
|
|
207
231
|
Truncate(num: number, digits?: number): number;
|
|
232
|
+
|
|
208
233
|
/**
|
|
209
234
|
* Calculates the absolute value of a number (effectively removes any negative sign).
|
|
210
235
|
* @realm shared and menu
|
|
211
236
|
* @source https://wiki.facepunch.com/gmod/math.abs
|
|
212
237
|
*/
|
|
213
238
|
abs(x: number): number;
|
|
239
|
+
|
|
214
240
|
/**
|
|
215
241
|
* Returns the [arccosine](https://en.wikipedia.org/wiki/Arccosine) of the given number.
|
|
216
242
|
* @realm shared and menu
|
|
217
243
|
* @source https://wiki.facepunch.com/gmod/math.acos
|
|
218
244
|
*/
|
|
219
245
|
acos(cos: number): number;
|
|
246
|
+
|
|
220
247
|
/**
|
|
221
248
|
* Returns the [arcsine](https://en.wikipedia.org/wiki/Inverse_trigonometric_functions) of the given number.
|
|
222
249
|
* @realm shared and menu
|
|
223
250
|
* @source https://wiki.facepunch.com/gmod/math.asin
|
|
224
251
|
*/
|
|
225
252
|
asin(normal: number): number;
|
|
253
|
+
|
|
226
254
|
/**
|
|
227
255
|
* Returns the [arctangent](https://en.wikipedia.org/wiki/Inverse_trigonometric_functions) of the given number.
|
|
228
256
|
* @realm shared and menu
|
|
229
257
|
* @source https://wiki.facepunch.com/gmod/math.atan
|
|
230
258
|
*/
|
|
231
259
|
atan(normal: number): number;
|
|
260
|
+
|
|
232
261
|
/**
|
|
233
262
|
* functions like [math.atan](https://wiki.facepunch.com/gmod/math.atan)(y / x), except it also takes into account the quadrant of the angle and so doesn't have a limited range of output.
|
|
234
263
|
*
|
|
@@ -239,6 +268,7 @@ interface MathLib {
|
|
|
239
268
|
* @source https://wiki.facepunch.com/gmod/math.atan2
|
|
240
269
|
*/
|
|
241
270
|
atan2(y: number, x: number): number;
|
|
271
|
+
|
|
242
272
|
/**
|
|
243
273
|
* **INTERNAL**: Use [math.BSplinePoint](https://wiki.facepunch.com/gmod/math.BSplinePoint) instead.
|
|
244
274
|
*
|
|
@@ -249,6 +279,7 @@ interface MathLib {
|
|
|
249
279
|
* @source https://wiki.facepunch.com/gmod/math.calcBSplineN
|
|
250
280
|
*/
|
|
251
281
|
calcBSplineN(i: number, k: number, t: number, tinc: number): number;
|
|
282
|
+
|
|
252
283
|
/**
|
|
253
284
|
* Ceils or rounds a number up.
|
|
254
285
|
*
|
|
@@ -257,30 +288,35 @@ interface MathLib {
|
|
|
257
288
|
* @source https://wiki.facepunch.com/gmod/math.ceil
|
|
258
289
|
*/
|
|
259
290
|
ceil(number: number): number;
|
|
291
|
+
|
|
260
292
|
/**
|
|
261
293
|
* Returns the [cosine](https://en.wikipedia.org/wiki/Trigonometric_functions#cos) of given angle.
|
|
262
294
|
* @realm shared and menu
|
|
263
295
|
* @source https://wiki.facepunch.com/gmod/math.cos
|
|
264
296
|
*/
|
|
265
297
|
cos(number: number): number;
|
|
298
|
+
|
|
266
299
|
/**
|
|
267
300
|
* Returns the [hyperbolic cosine](https://en.wikipedia.org/wiki/Cosh_(mathematical_function)) of the given angle.
|
|
268
301
|
* @realm shared and menu
|
|
269
302
|
* @source https://wiki.facepunch.com/gmod/math.cosh
|
|
270
303
|
*/
|
|
271
304
|
cosh(number: number): number;
|
|
305
|
+
|
|
272
306
|
/**
|
|
273
307
|
* Converts radians to degrees.
|
|
274
308
|
* @realm shared and menu
|
|
275
309
|
* @source https://wiki.facepunch.com/gmod/math.deg
|
|
276
310
|
*/
|
|
277
311
|
deg(radians: number): number;
|
|
312
|
+
|
|
278
313
|
/**
|
|
279
314
|
* Returns e to the power of the input.
|
|
280
315
|
* @realm shared and menu
|
|
281
316
|
* @source https://wiki.facepunch.com/gmod/math.exp
|
|
282
317
|
*/
|
|
283
318
|
exp(exponent: number): number;
|
|
319
|
+
|
|
284
320
|
/**
|
|
285
321
|
* Floors or rounds a number down.
|
|
286
322
|
*
|
|
@@ -289,6 +325,7 @@ interface MathLib {
|
|
|
289
325
|
* @source https://wiki.facepunch.com/gmod/math.floor
|
|
290
326
|
*/
|
|
291
327
|
floor(number: number): number;
|
|
328
|
+
|
|
292
329
|
/**
|
|
293
330
|
* Returns the modulus of the specified values.
|
|
294
331
|
*
|
|
@@ -300,6 +337,7 @@ interface MathLib {
|
|
|
300
337
|
* @source https://wiki.facepunch.com/gmod/math.fmod
|
|
301
338
|
*/
|
|
302
339
|
fmod(base: number, modulator: number): number;
|
|
340
|
+
|
|
303
341
|
/**
|
|
304
342
|
* **Lua reference description**: Returns `m` and `e` such that `x = m2e`, `e` is an integer and the absolute value of `m` is in the range ((0.5, 1) (or zero when x is zero).
|
|
305
343
|
*
|
|
@@ -311,6 +349,7 @@ interface MathLib {
|
|
|
311
349
|
* @source https://wiki.facepunch.com/gmod/math.frexp
|
|
312
350
|
*/
|
|
313
351
|
frexp(x: number): (number, number);
|
|
352
|
+
|
|
314
353
|
/**
|
|
315
354
|
* Takes a normalised number and returns the floating point representation.
|
|
316
355
|
*
|
|
@@ -320,6 +359,7 @@ interface MathLib {
|
|
|
320
359
|
* @source https://wiki.facepunch.com/gmod/math.ldexp
|
|
321
360
|
*/
|
|
322
361
|
ldexp(normalizedFraction: number, exponent: number): number;
|
|
362
|
+
|
|
323
363
|
/**
|
|
324
364
|
* With one argument, return the natural logarithm of x (to base e).
|
|
325
365
|
*
|
|
@@ -329,24 +369,28 @@ interface MathLib {
|
|
|
329
369
|
* @source https://wiki.facepunch.com/gmod/math.log
|
|
330
370
|
*/
|
|
331
371
|
log(x: number, base?: number): number;
|
|
372
|
+
|
|
332
373
|
/**
|
|
333
374
|
* Returns the base-10 logarithm of x. This is usually more accurate than math.log(x, 10).
|
|
334
375
|
* @realm shared and menu
|
|
335
376
|
* @source https://wiki.facepunch.com/gmod/math.log10
|
|
336
377
|
*/
|
|
337
378
|
log10(x: number): number;
|
|
379
|
+
|
|
338
380
|
/**
|
|
339
381
|
* Returns the largest value of all arguments.
|
|
340
382
|
* @realm shared and menu
|
|
341
383
|
* @source https://wiki.facepunch.com/gmod/math.max
|
|
342
384
|
*/
|
|
343
385
|
max(...: any): number;
|
|
386
|
+
|
|
344
387
|
/**
|
|
345
388
|
* Returns the smallest value of all arguments.
|
|
346
389
|
* @realm shared and menu
|
|
347
390
|
* @source https://wiki.facepunch.com/gmod/math.min
|
|
348
391
|
*/
|
|
349
392
|
min(...: any): number;
|
|
393
|
+
|
|
350
394
|
/**
|
|
351
395
|
* Returns the modulus of the specified values. Same as [math.fmod](https://wiki.facepunch.com/gmod/math.fmod).
|
|
352
396
|
*
|
|
@@ -355,12 +399,14 @@ interface MathLib {
|
|
|
355
399
|
* @deprecated This is removed in Lua versions later than what GMod is currently using. You should use the % operator or math.fmod instead.
|
|
356
400
|
*/
|
|
357
401
|
mod(base: number, modulator: number): number;
|
|
402
|
+
|
|
358
403
|
/**
|
|
359
404
|
* Returns the integral and fractional component of the modulo operation.
|
|
360
405
|
* @realm shared and menu
|
|
361
406
|
* @source https://wiki.facepunch.com/gmod/math.modf
|
|
362
407
|
*/
|
|
363
408
|
modf(base: number): (number, number);
|
|
409
|
+
|
|
364
410
|
/**
|
|
365
411
|
* Returns x raised to the power y.
|
|
366
412
|
* In particular, math.pow(1.0, x) and math.pow(x, 0.0) always return 1.0, even when x is a zero or a [nan](https://wiki.facepunch.com/gmod/nan). If both x and y are finite, x is negative, and y is not an integer then math.pow(x, y) is undefined.
|
|
@@ -369,12 +415,14 @@ interface MathLib {
|
|
|
369
415
|
* @source https://wiki.facepunch.com/gmod/math.pow
|
|
370
416
|
*/
|
|
371
417
|
pow(x: number, y: number): number;
|
|
418
|
+
|
|
372
419
|
/**
|
|
373
420
|
* Converts an angle in degrees to it's equivalent in radians.
|
|
374
421
|
* @realm shared and menu
|
|
375
422
|
* @source https://wiki.facepunch.com/gmod/math.rad
|
|
376
423
|
*/
|
|
377
424
|
rad(degrees: number): number;
|
|
425
|
+
|
|
378
426
|
/**
|
|
379
427
|
* When called without arguments, returns a uniform pseudo-random real number in the range 0 to 1 which includes 0 but excludes 1.
|
|
380
428
|
*
|
|
@@ -388,6 +436,7 @@ interface MathLib {
|
|
|
388
436
|
* @source https://wiki.facepunch.com/gmod/math.random
|
|
389
437
|
*/
|
|
390
438
|
random(m?: number, n?: number): number;
|
|
439
|
+
|
|
391
440
|
/**
|
|
392
441
|
* Seeds the random number generator. The same seed will guarantee the same sequence of numbers each time with [math.random](https://wiki.facepunch.com/gmod/math.random).
|
|
393
442
|
*
|
|
@@ -402,30 +451,35 @@ interface MathLib {
|
|
|
402
451
|
* @source https://wiki.facepunch.com/gmod/math.randomseed
|
|
403
452
|
*/
|
|
404
453
|
randomseed(seed: number): void;
|
|
454
|
+
|
|
405
455
|
/**
|
|
406
456
|
* Returns the [sine](https://en.wikipedia.org/wiki/Trigonometric_functions) of given angle.
|
|
407
457
|
* @realm shared and menu
|
|
408
458
|
* @source https://wiki.facepunch.com/gmod/math.sin
|
|
409
459
|
*/
|
|
410
460
|
sin(number: number): number;
|
|
461
|
+
|
|
411
462
|
/**
|
|
412
463
|
* Returns the [hyperbolic sine](https://en.wikipedia.org/wiki/Hyperbolic_functions) of the given angle.
|
|
413
464
|
* @realm shared and menu
|
|
414
465
|
* @source https://wiki.facepunch.com/gmod/math.sinh
|
|
415
466
|
*/
|
|
416
467
|
sinh(number: number): number;
|
|
468
|
+
|
|
417
469
|
/**
|
|
418
470
|
* Returns the square root of the number.
|
|
419
471
|
* @realm shared and menu
|
|
420
472
|
* @source https://wiki.facepunch.com/gmod/math.sqrt
|
|
421
473
|
*/
|
|
422
474
|
sqrt(value: number): number;
|
|
475
|
+
|
|
423
476
|
/**
|
|
424
477
|
* Returns the tangent of the given angle.
|
|
425
478
|
* @realm shared and menu
|
|
426
479
|
* @source https://wiki.facepunch.com/gmod/math.tan
|
|
427
480
|
*/
|
|
428
481
|
tan(value: number): number;
|
|
482
|
+
|
|
429
483
|
/**
|
|
430
484
|
* Returns the [hyperbolic tangent](https://en.wikipedia.org/wiki/Hyperbolic_functions) of the given number.
|
|
431
485
|
* @realm shared and menu
|
|
@@ -434,40 +488,6 @@ interface MathLib {
|
|
|
434
488
|
tanh(number: number): number;
|
|
435
489
|
}
|
|
436
490
|
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
491
|
interface MatheaseLib {
|
|
472
492
|
/**
|
|
473
493
|
* Eases in by reversing the direction of the ease slightly before returning.
|
|
@@ -478,6 +498,7 @@ interface MatheaseLib {
|
|
|
478
498
|
* @source https://wiki.facepunch.com/gmod/math.ease.InBack
|
|
479
499
|
*/
|
|
480
500
|
InBack(fraction: number): number;
|
|
501
|
+
|
|
481
502
|
/**
|
|
482
503
|
* Eases in like a bouncy ball.
|
|
483
504
|
* **NOTE**: This doesn't work properly when used with [Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp) as it clamps the fraction between 0 and 1. Using your own version of [Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp) that is unclamped would be necessary instead.
|
|
@@ -487,18 +508,21 @@ interface MatheaseLib {
|
|
|
487
508
|
* @source https://wiki.facepunch.com/gmod/math.ease.InBounce
|
|
488
509
|
*/
|
|
489
510
|
InBounce(fraction: number): number;
|
|
511
|
+
|
|
490
512
|
/**
|
|
491
513
|
* Eases in using a circular function.
|
|
492
514
|
* @realm shared and menu
|
|
493
515
|
* @source https://wiki.facepunch.com/gmod/math.ease.InCirc
|
|
494
516
|
*/
|
|
495
517
|
InCirc(fraction: number): number;
|
|
518
|
+
|
|
496
519
|
/**
|
|
497
520
|
* Eases in by cubing the fraction.
|
|
498
521
|
* @realm shared and menu
|
|
499
522
|
* @source https://wiki.facepunch.com/gmod/math.ease.InCubic
|
|
500
523
|
*/
|
|
501
524
|
InCubic(fraction: number): number;
|
|
525
|
+
|
|
502
526
|
/**
|
|
503
527
|
* Eases in like a rubber band.
|
|
504
528
|
* **NOTE**: This doesn't work properly when used with [Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp) as it clamps the fraction between 0 and 1. Using your own version of [Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp) that is unclamped would be necessary instead.
|
|
@@ -508,12 +532,14 @@ interface MatheaseLib {
|
|
|
508
532
|
* @source https://wiki.facepunch.com/gmod/math.ease.InElastic
|
|
509
533
|
*/
|
|
510
534
|
InElastic(fraction: number): number;
|
|
535
|
+
|
|
511
536
|
/**
|
|
512
537
|
* Eases in using an exponential equation with a base of 2 and where the fraction is used in the exponent.
|
|
513
538
|
* @realm shared and menu
|
|
514
539
|
* @source https://wiki.facepunch.com/gmod/math.ease.InExpo
|
|
515
540
|
*/
|
|
516
541
|
InExpo(fraction: number): number;
|
|
542
|
+
|
|
517
543
|
/**
|
|
518
544
|
* Eases in and out by reversing the direction of the ease slightly before returning on both ends.
|
|
519
545
|
* **NOTE**: This doesn't work properly when used with [Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp) as it clamps the fraction between 0 and 1. Using your own version of [Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp) that is unclamped would be necessary instead.
|
|
@@ -523,6 +549,7 @@ interface MatheaseLib {
|
|
|
523
549
|
* @source https://wiki.facepunch.com/gmod/math.ease.InOutBack
|
|
524
550
|
*/
|
|
525
551
|
InOutBack(fraction: number): number;
|
|
552
|
+
|
|
526
553
|
/**
|
|
527
554
|
* Eases in and out like a bouncy ball.
|
|
528
555
|
* **NOTE**: This doesn't work properly when used with [Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp) as it clamps the fraction between 0 and 1. Using your own version of [Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp) that is unclamped would be necessary instead.
|
|
@@ -532,18 +559,21 @@ interface MatheaseLib {
|
|
|
532
559
|
* @source https://wiki.facepunch.com/gmod/math.ease.InOutBounce
|
|
533
560
|
*/
|
|
534
561
|
InOutBounce(fraction: number): number;
|
|
562
|
+
|
|
535
563
|
/**
|
|
536
564
|
* Eases in and out using a circular function.
|
|
537
565
|
* @realm shared and menu
|
|
538
566
|
* @source https://wiki.facepunch.com/gmod/math.ease.InOutCirc
|
|
539
567
|
*/
|
|
540
568
|
InOutCirc(fraction: number): number;
|
|
569
|
+
|
|
541
570
|
/**
|
|
542
571
|
* Eases in and out by cubing the fraction.
|
|
543
572
|
* @realm shared and menu
|
|
544
573
|
* @source https://wiki.facepunch.com/gmod/math.ease.InOutCubic
|
|
545
574
|
*/
|
|
546
575
|
InOutCubic(fraction: number): number;
|
|
576
|
+
|
|
547
577
|
/**
|
|
548
578
|
* Eases in and out like a rubber band.
|
|
549
579
|
* **NOTE**: This doesn't work properly when used with [Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp) as it clamps the fraction between 0 and 1. Using your own version of [Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp) that is unclamped would be necessary instead.
|
|
@@ -553,60 +583,70 @@ interface MatheaseLib {
|
|
|
553
583
|
* @source https://wiki.facepunch.com/gmod/math.ease.InOutElastic
|
|
554
584
|
*/
|
|
555
585
|
InOutElastic(fraction: number): number;
|
|
586
|
+
|
|
556
587
|
/**
|
|
557
588
|
* Eases in and out using an exponential equation with a base of 2 and where the fraction is used in the exponent.
|
|
558
589
|
* @realm shared and menu
|
|
559
590
|
* @source https://wiki.facepunch.com/gmod/math.ease.InOutExpo
|
|
560
591
|
*/
|
|
561
592
|
InOutExpo(fraction: number): number;
|
|
593
|
+
|
|
562
594
|
/**
|
|
563
595
|
* Eases in and out by squaring the fraction.
|
|
564
596
|
* @realm shared and menu
|
|
565
597
|
* @source https://wiki.facepunch.com/gmod/math.ease.InOutQuad
|
|
566
598
|
*/
|
|
567
599
|
InOutQuad(fraction: number): number;
|
|
600
|
+
|
|
568
601
|
/**
|
|
569
602
|
* Eases in and out by raising the fraction to the power of 4.
|
|
570
603
|
* @realm shared and menu
|
|
571
604
|
* @source https://wiki.facepunch.com/gmod/math.ease.InOutQuart
|
|
572
605
|
*/
|
|
573
606
|
InOutQuart(fraction: number): number;
|
|
607
|
+
|
|
574
608
|
/**
|
|
575
609
|
* Eases in and out by raising the fraction to the power of 5.
|
|
576
610
|
* @realm shared and menu
|
|
577
611
|
* @source https://wiki.facepunch.com/gmod/math.ease.InOutQuint
|
|
578
612
|
*/
|
|
579
613
|
InOutQuint(fraction: number): number;
|
|
614
|
+
|
|
580
615
|
/**
|
|
581
616
|
* Eases in and out using [math.sin](https://wiki.facepunch.com/gmod/math.sin).
|
|
582
617
|
* @realm shared and menu
|
|
583
618
|
* @source https://wiki.facepunch.com/gmod/math.ease.InOutSine
|
|
584
619
|
*/
|
|
585
620
|
InOutSine(fraction: number): number;
|
|
621
|
+
|
|
586
622
|
/**
|
|
587
623
|
* Eases in by squaring the fraction.
|
|
588
624
|
* @realm shared and menu
|
|
589
625
|
* @source https://wiki.facepunch.com/gmod/math.ease.InQuad
|
|
590
626
|
*/
|
|
591
627
|
InQuad(fraction: number): number;
|
|
628
|
+
|
|
592
629
|
/**
|
|
593
630
|
* Eases in by raising the fraction to the power of 4.
|
|
594
631
|
* @realm shared and menu
|
|
595
632
|
* @source https://wiki.facepunch.com/gmod/math.ease.InQuart
|
|
596
633
|
*/
|
|
597
634
|
InQuart(fraction: number): number;
|
|
635
|
+
|
|
598
636
|
/**
|
|
599
637
|
* Eases in by raising the fraction to the power of 5.
|
|
600
638
|
* @realm shared and menu
|
|
601
639
|
* @source https://wiki.facepunch.com/gmod/math.ease.InQuint
|
|
602
640
|
*/
|
|
603
641
|
InQuint(fraction: number): number;
|
|
642
|
+
|
|
604
643
|
/**
|
|
605
644
|
* Eases in using [math.sin](https://wiki.facepunch.com/gmod/math.sin).
|
|
606
645
|
* @realm shared and menu
|
|
607
646
|
* @source https://wiki.facepunch.com/gmod/math.ease.InSine
|
|
608
647
|
*/
|
|
609
648
|
InSine(fraction: number): number;
|
|
649
|
+
|
|
610
650
|
/**
|
|
611
651
|
* Eases out by reversing the direction of the ease slightly before finishing.
|
|
612
652
|
* **NOTE**: This doesn't work properly when used with [Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp) as it clamps the fraction between 0 and 1. Using your own version of [Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp) that is unclamped would be necessary instead.
|
|
@@ -616,6 +656,7 @@ interface MatheaseLib {
|
|
|
616
656
|
* @source https://wiki.facepunch.com/gmod/math.ease.OutBack
|
|
617
657
|
*/
|
|
618
658
|
OutBack(fraction: number): number;
|
|
659
|
+
|
|
619
660
|
/**
|
|
620
661
|
* Eases out like a bouncy ball.
|
|
621
662
|
* **NOTE**: This doesn't work properly when used with [Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp) as it clamps the fraction between 0 and 1. Using your own version of [Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp) that is unclamped would be necessary instead.
|
|
@@ -625,18 +666,21 @@ interface MatheaseLib {
|
|
|
625
666
|
* @source https://wiki.facepunch.com/gmod/math.ease.OutBounce
|
|
626
667
|
*/
|
|
627
668
|
OutBounce(fraction: number): number;
|
|
669
|
+
|
|
628
670
|
/**
|
|
629
671
|
* Eases out using a circular function.
|
|
630
672
|
* @realm shared and menu
|
|
631
673
|
* @source https://wiki.facepunch.com/gmod/math.ease.OutCirc
|
|
632
674
|
*/
|
|
633
675
|
OutCirc(fraction: number): number;
|
|
676
|
+
|
|
634
677
|
/**
|
|
635
678
|
* Eases out by cubing the fraction.
|
|
636
679
|
* @realm shared and menu
|
|
637
680
|
* @source https://wiki.facepunch.com/gmod/math.ease.OutCubic
|
|
638
681
|
*/
|
|
639
682
|
OutCubic(fraction: number): number;
|
|
683
|
+
|
|
640
684
|
/**
|
|
641
685
|
* Eases out like a rubber band.
|
|
642
686
|
* **NOTE**: This doesn't work properly when used with [Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp) as it clamps the fraction between 0 and 1. Using your own version of [Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp) that is unclamped would be necessary instead.
|
|
@@ -646,30 +690,35 @@ interface MatheaseLib {
|
|
|
646
690
|
* @source https://wiki.facepunch.com/gmod/math.ease.OutElastic
|
|
647
691
|
*/
|
|
648
692
|
OutElastic(fraction: number): number;
|
|
693
|
+
|
|
649
694
|
/**
|
|
650
695
|
* Eases out using an exponential equation with a base of 2 and where the fraction is used in the exponent.
|
|
651
696
|
* @realm shared and menu
|
|
652
697
|
* @source https://wiki.facepunch.com/gmod/math.ease.OutExpo
|
|
653
698
|
*/
|
|
654
699
|
OutExpo(fraction: number): number;
|
|
700
|
+
|
|
655
701
|
/**
|
|
656
702
|
* Eases out by squaring the fraction.
|
|
657
703
|
* @realm shared and menu
|
|
658
704
|
* @source https://wiki.facepunch.com/gmod/math.ease.OutQuad
|
|
659
705
|
*/
|
|
660
706
|
OutQuad(fraction: number): number;
|
|
707
|
+
|
|
661
708
|
/**
|
|
662
709
|
* Eases out by raising the fraction to the power of 4.
|
|
663
710
|
* @realm shared and menu
|
|
664
711
|
* @source https://wiki.facepunch.com/gmod/math.ease.OutQuart
|
|
665
712
|
*/
|
|
666
713
|
OutQuart(fraction: number): number;
|
|
714
|
+
|
|
667
715
|
/**
|
|
668
716
|
* Eases out by raising the fraction to the power of 5.
|
|
669
717
|
* @realm shared and menu
|
|
670
718
|
* @source https://wiki.facepunch.com/gmod/math.ease.OutQuint
|
|
671
719
|
*/
|
|
672
720
|
OutQuint(fraction: number): number;
|
|
721
|
+
|
|
673
722
|
/**
|
|
674
723
|
* Eases out using [math.sin](https://wiki.facepunch.com/gmod/math.sin).
|
|
675
724
|
* @realm shared and menu
|
|
@@ -677,53 +726,3 @@ interface MatheaseLib {
|
|
|
677
726
|
*/
|
|
678
727
|
OutSine(fraction: number): number;
|
|
679
728
|
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|