@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/vgui.d.tlua
CHANGED
|
@@ -21,6 +21,7 @@ interface VguiLib {
|
|
|
21
21
|
* @source https://wiki.facepunch.com/gmod/vgui.Create
|
|
22
22
|
*/
|
|
23
23
|
Create(classname: string, parent?: Panel, name?: string): Panel;
|
|
24
|
+
|
|
24
25
|
/**
|
|
25
26
|
* Creates a panel from a table, used alongside vgui.RegisterFile and
|
|
26
27
|
* vgui.RegisterTable to define, register, and instantiate custom panels.
|
|
@@ -29,6 +30,7 @@ interface VguiLib {
|
|
|
29
30
|
* @source https://wiki.facepunch.com/gmod/vgui.CreateFromTable
|
|
30
31
|
*/
|
|
31
32
|
CreateFromTable(metatable: table, parent?: Panel, name?: string): Panel;
|
|
33
|
+
|
|
32
34
|
/**
|
|
33
35
|
* Creates an engine panel.
|
|
34
36
|
*
|
|
@@ -42,24 +44,28 @@ interface VguiLib {
|
|
|
42
44
|
* @source https://wiki.facepunch.com/gmod/vgui.CreateX
|
|
43
45
|
*/
|
|
44
46
|
CreateX(class: string, parent?: Panel, name?: string): Panel;
|
|
47
|
+
|
|
45
48
|
/**
|
|
46
49
|
* Returns whenever the cursor is currently active and visible.
|
|
47
50
|
* @realm client and menu
|
|
48
51
|
* @source https://wiki.facepunch.com/gmod/vgui.CursorVisible
|
|
49
52
|
*/
|
|
50
53
|
CursorVisible(): boolean;
|
|
54
|
+
|
|
51
55
|
/**
|
|
52
56
|
* Returns true if Lua-defined panel exists by name. Uses [vgui.GetControlTable](https://wiki.facepunch.com/gmod/vgui.GetControlTable) internally.
|
|
53
57
|
* @realm client and menu
|
|
54
58
|
* @source https://wiki.facepunch.com/gmod/vgui.Exists
|
|
55
59
|
*/
|
|
56
60
|
Exists(Panelname: string): boolean;
|
|
61
|
+
|
|
57
62
|
/**
|
|
58
63
|
* Returns whether the currently focused panel is a child of the given one.
|
|
59
64
|
* @realm client and menu
|
|
60
65
|
* @source https://wiki.facepunch.com/gmod/vgui.FocusedHasParent
|
|
61
66
|
*/
|
|
62
67
|
FocusedHasParent(parent: Panel): boolean;
|
|
68
|
+
|
|
63
69
|
/**
|
|
64
70
|
* Returns all Lua-created panels.
|
|
65
71
|
*
|
|
@@ -69,6 +75,7 @@ interface VguiLib {
|
|
|
69
75
|
* @source https://wiki.facepunch.com/gmod/vgui.GetAll
|
|
70
76
|
*/
|
|
71
77
|
GetAll(): Panel[];
|
|
78
|
+
|
|
72
79
|
/**
|
|
73
80
|
* Returns the table of a Lua-defined panel by name. Does not return parent
|
|
74
81
|
* members of the table!
|
|
@@ -81,6 +88,7 @@ interface VguiLib {
|
|
|
81
88
|
* @source https://wiki.facepunch.com/gmod/vgui.GetControlTable
|
|
82
89
|
*/
|
|
83
90
|
GetControlTable(Panelname: string): table;
|
|
91
|
+
|
|
84
92
|
/**
|
|
85
93
|
* Returns the panel the cursor is hovering above.
|
|
86
94
|
*
|
|
@@ -93,12 +101,14 @@ interface VguiLib {
|
|
|
93
101
|
* @source https://wiki.facepunch.com/gmod/vgui.GetHoveredPanel
|
|
94
102
|
*/
|
|
95
103
|
GetHoveredPanel(): Panel;
|
|
104
|
+
|
|
96
105
|
/**
|
|
97
106
|
* Returns the panel which is currently receiving keyboard input.
|
|
98
107
|
* @realm client and menu
|
|
99
108
|
* @source https://wiki.facepunch.com/gmod/vgui.GetKeyboardFocus
|
|
100
109
|
*/
|
|
101
110
|
GetKeyboardFocus(): Panel;
|
|
111
|
+
|
|
102
112
|
/**
|
|
103
113
|
* Returns the global world panel which is the parent to all others, except for the HUD panel.
|
|
104
114
|
*
|
|
@@ -108,18 +118,21 @@ interface VguiLib {
|
|
|
108
118
|
* @source https://wiki.facepunch.com/gmod/vgui.GetWorldPanel
|
|
109
119
|
*/
|
|
110
120
|
GetWorldPanel(): Panel;
|
|
121
|
+
|
|
111
122
|
/**
|
|
112
123
|
* Returns whenever the cursor is hovering the world panel.
|
|
113
124
|
* @realm client and menu
|
|
114
125
|
* @source https://wiki.facepunch.com/gmod/vgui.IsHoveringWorld
|
|
115
126
|
*/
|
|
116
127
|
IsHoveringWorld(): boolean;
|
|
128
|
+
|
|
117
129
|
/**
|
|
118
130
|
* Registers a panel for later creation via [vgui.Create](https://wiki.facepunch.com/gmod/vgui.Create).
|
|
119
131
|
* @realm client and menu
|
|
120
132
|
* @source https://wiki.facepunch.com/gmod/vgui.Register
|
|
121
133
|
*/
|
|
122
134
|
Register(classname: string, panelTable: table, baseName?: string): table;
|
|
135
|
+
|
|
123
136
|
/**
|
|
124
137
|
* Registers a new [VGUI](https://wiki.facepunch.com/gmod/VGUI) panel from a file, to be used with [vgui.CreateFromTable](https://wiki.facepunch.com/gmod/vgui.CreateFromTable).
|
|
125
138
|
*
|
|
@@ -143,6 +156,7 @@ interface VguiLib {
|
|
|
143
156
|
* @source https://wiki.facepunch.com/gmod/vgui.RegisterFile
|
|
144
157
|
*/
|
|
145
158
|
RegisterFile(file: string): table;
|
|
159
|
+
|
|
146
160
|
/**
|
|
147
161
|
* Registers a table to use as a panel, to be used with [vgui.CreateFromTable](https://wiki.facepunch.com/gmod/vgui.CreateFromTable).
|
|
148
162
|
*
|
|
@@ -152,22 +166,3 @@ interface VguiLib {
|
|
|
152
166
|
*/
|
|
153
167
|
RegisterTable(panel: table, base?: string): table;
|
|
154
168
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
package/types/video.d.tlua
CHANGED
package/types/vmatrix.d.tlua
CHANGED
|
@@ -14,6 +14,7 @@ interface VMatrix {
|
|
|
14
14
|
__mul(l: VMatrix, r: Vector): Vector;
|
|
15
15
|
__mul(l: VMatrix, r: VMatrix): VMatrix;
|
|
16
16
|
__unm(m: VMatrix): VMatrix;
|
|
17
|
+
|
|
17
18
|
/**
|
|
18
19
|
* Adds given matrix to this matrix.
|
|
19
20
|
*
|
|
@@ -21,18 +22,21 @@ interface VMatrix {
|
|
|
21
22
|
* @source https://wiki.facepunch.com/gmod/VMatrix:Add
|
|
22
23
|
*/
|
|
23
24
|
Add(self: VMatrix, input: VMatrix): void;
|
|
25
|
+
|
|
24
26
|
/**
|
|
25
27
|
* Returns the absolute rotation of the matrix. Scaled matrix might produce unexpected results!
|
|
26
28
|
* @realm shared
|
|
27
29
|
* @source https://wiki.facepunch.com/gmod/VMatrix:GetAngles
|
|
28
30
|
*/
|
|
29
31
|
GetAngles(self: VMatrix): Angle;
|
|
32
|
+
|
|
30
33
|
/**
|
|
31
34
|
* Returns a specific field in the matrix.
|
|
32
35
|
* @realm shared
|
|
33
36
|
* @source https://wiki.facepunch.com/gmod/VMatrix:GetField
|
|
34
37
|
*/
|
|
35
38
|
GetField(self: VMatrix, row: number, column: number): number;
|
|
39
|
+
|
|
36
40
|
/**
|
|
37
41
|
* Gets the forward direction of the matrix.
|
|
38
42
|
*
|
|
@@ -42,6 +46,7 @@ interface VMatrix {
|
|
|
42
46
|
* @source https://wiki.facepunch.com/gmod/VMatrix:GetForward
|
|
43
47
|
*/
|
|
44
48
|
GetForward(self: VMatrix): Vector;
|
|
49
|
+
|
|
45
50
|
/**
|
|
46
51
|
* Returns an inverted matrix without modifying the original matrix.
|
|
47
52
|
*
|
|
@@ -53,6 +58,7 @@ interface VMatrix {
|
|
|
53
58
|
* @source https://wiki.facepunch.com/gmod/VMatrix:GetInverse
|
|
54
59
|
*/
|
|
55
60
|
GetInverse(self: VMatrix): VMatrix;
|
|
61
|
+
|
|
56
62
|
/**
|
|
57
63
|
* Returns an inverted matrix without modifying the original matrix. This function will not fail, but only works correctly on matrices that contain only translation and/or rotation.
|
|
58
64
|
*
|
|
@@ -64,6 +70,7 @@ interface VMatrix {
|
|
|
64
70
|
* @source https://wiki.facepunch.com/gmod/VMatrix:GetInverseTR
|
|
65
71
|
*/
|
|
66
72
|
GetInverseTR(self: VMatrix): VMatrix;
|
|
73
|
+
|
|
67
74
|
/**
|
|
68
75
|
* Gets the right direction of the matrix.
|
|
69
76
|
*
|
|
@@ -73,18 +80,21 @@ interface VMatrix {
|
|
|
73
80
|
* @source https://wiki.facepunch.com/gmod/VMatrix:GetRight
|
|
74
81
|
*/
|
|
75
82
|
GetRight(self: VMatrix): Vector;
|
|
83
|
+
|
|
76
84
|
/**
|
|
77
85
|
* Returns the absolute scale of the matrix.
|
|
78
86
|
* @realm shared
|
|
79
87
|
* @source https://wiki.facepunch.com/gmod/VMatrix:GetScale
|
|
80
88
|
*/
|
|
81
89
|
GetScale(self: VMatrix): Vector;
|
|
90
|
+
|
|
82
91
|
/**
|
|
83
92
|
* Returns the absolute translation of the matrix.
|
|
84
93
|
* @realm shared
|
|
85
94
|
* @source https://wiki.facepunch.com/gmod/VMatrix:GetTranslation
|
|
86
95
|
*/
|
|
87
96
|
GetTranslation(self: VMatrix): Vector;
|
|
97
|
+
|
|
88
98
|
/**
|
|
89
99
|
* Returns the transpose (each row becomes a column) of this matrix.
|
|
90
100
|
*
|
|
@@ -92,6 +102,7 @@ interface VMatrix {
|
|
|
92
102
|
* @source https://wiki.facepunch.com/gmod/VMatrix:GetTransposed
|
|
93
103
|
*/
|
|
94
104
|
GetTransposed(self: VMatrix): VMatrix;
|
|
105
|
+
|
|
95
106
|
/**
|
|
96
107
|
* Gets the up direction of the matrix.
|
|
97
108
|
*
|
|
@@ -101,12 +112,14 @@ interface VMatrix {
|
|
|
101
112
|
* @source https://wiki.facepunch.com/gmod/VMatrix:GetUp
|
|
102
113
|
*/
|
|
103
114
|
GetUp(self: VMatrix): Vector;
|
|
115
|
+
|
|
104
116
|
/**
|
|
105
117
|
* Initializes the matrix as Identity matrix.
|
|
106
118
|
* @realm shared
|
|
107
119
|
* @source https://wiki.facepunch.com/gmod/VMatrix:Identity
|
|
108
120
|
*/
|
|
109
121
|
Identity(self: VMatrix): void;
|
|
122
|
+
|
|
110
123
|
/**
|
|
111
124
|
* Inverts the matrix.
|
|
112
125
|
*
|
|
@@ -120,6 +133,7 @@ interface VMatrix {
|
|
|
120
133
|
* @source https://wiki.facepunch.com/gmod/VMatrix:Invert
|
|
121
134
|
*/
|
|
122
135
|
Invert(self: VMatrix): boolean;
|
|
136
|
+
|
|
123
137
|
/**
|
|
124
138
|
* Quickly inverts the matrix. This function will not fail, but only works correctly on matrices that contain only translation and/or rotation.
|
|
125
139
|
*
|
|
@@ -131,12 +145,14 @@ interface VMatrix {
|
|
|
131
145
|
* @source https://wiki.facepunch.com/gmod/VMatrix:InvertTR
|
|
132
146
|
*/
|
|
133
147
|
InvertTR(self: VMatrix): void;
|
|
148
|
+
|
|
134
149
|
/**
|
|
135
150
|
* Returns whether the matrix is equal to Identity matrix or not.
|
|
136
151
|
* @realm shared
|
|
137
152
|
* @source https://wiki.facepunch.com/gmod/VMatrix:IsIdentity
|
|
138
153
|
*/
|
|
139
154
|
IsIdentity(self: VMatrix): boolean;
|
|
155
|
+
|
|
140
156
|
/**
|
|
141
157
|
* Returns whether the matrix is a rotation matrix or not.
|
|
142
158
|
*
|
|
@@ -146,12 +162,14 @@ interface VMatrix {
|
|
|
146
162
|
* @source https://wiki.facepunch.com/gmod/VMatrix:IsRotationMatrix
|
|
147
163
|
*/
|
|
148
164
|
IsRotationMatrix(self: VMatrix): boolean;
|
|
165
|
+
|
|
149
166
|
/**
|
|
150
167
|
* Checks whenever all fields of the matrix are 0, aka if this is a [null matrix](https://en.wikipedia.org/wiki/Zero_matrix).
|
|
151
168
|
* @realm shared
|
|
152
169
|
* @source https://wiki.facepunch.com/gmod/VMatrix:IsZero
|
|
153
170
|
*/
|
|
154
171
|
IsZero(self: VMatrix): boolean;
|
|
172
|
+
|
|
155
173
|
/**
|
|
156
174
|
* Multiplies this matrix by given matrix.
|
|
157
175
|
*
|
|
@@ -159,6 +177,7 @@ interface VMatrix {
|
|
|
159
177
|
* @source https://wiki.facepunch.com/gmod/VMatrix:Mul
|
|
160
178
|
*/
|
|
161
179
|
Mul(self: VMatrix, input: VMatrix): void;
|
|
180
|
+
|
|
162
181
|
/**
|
|
163
182
|
* Rotates the matrix by the given angle.
|
|
164
183
|
*
|
|
@@ -168,6 +187,7 @@ interface VMatrix {
|
|
|
168
187
|
* @source https://wiki.facepunch.com/gmod/VMatrix:Rotate
|
|
169
188
|
*/
|
|
170
189
|
Rotate(self: VMatrix, rotation: Angle): void;
|
|
190
|
+
|
|
171
191
|
/**
|
|
172
192
|
* Scales the matrix by the given vector.
|
|
173
193
|
*
|
|
@@ -177,30 +197,35 @@ interface VMatrix {
|
|
|
177
197
|
* @source https://wiki.facepunch.com/gmod/VMatrix:Scale
|
|
178
198
|
*/
|
|
179
199
|
Scale(self: VMatrix, scale: Vector): void;
|
|
200
|
+
|
|
180
201
|
/**
|
|
181
202
|
* Scales the absolute translation with the given value.
|
|
182
203
|
* @realm shared
|
|
183
204
|
* @source https://wiki.facepunch.com/gmod/VMatrix:ScaleTranslation
|
|
184
205
|
*/
|
|
185
206
|
ScaleTranslation(self: VMatrix, scale: number): void;
|
|
207
|
+
|
|
186
208
|
/**
|
|
187
209
|
* Copies values from the given matrix object.
|
|
188
210
|
* @realm shared
|
|
189
211
|
* @source https://wiki.facepunch.com/gmod/VMatrix:Set
|
|
190
212
|
*/
|
|
191
213
|
Set(self: VMatrix, src: VMatrix): void;
|
|
214
|
+
|
|
192
215
|
/**
|
|
193
216
|
* Sets the absolute rotation of the matrix.
|
|
194
217
|
* @realm shared
|
|
195
218
|
* @source https://wiki.facepunch.com/gmod/VMatrix:SetAngles
|
|
196
219
|
*/
|
|
197
220
|
SetAngles(self: VMatrix, angle: Angle): void;
|
|
221
|
+
|
|
198
222
|
/**
|
|
199
223
|
* Sets a specific field in the matrix.
|
|
200
224
|
* @realm shared
|
|
201
225
|
* @source https://wiki.facepunch.com/gmod/VMatrix:SetField
|
|
202
226
|
*/
|
|
203
227
|
SetField(self: VMatrix, row: number, column: number, value: number): void;
|
|
228
|
+
|
|
204
229
|
/**
|
|
205
230
|
* Sets the forward direction of the matrix.
|
|
206
231
|
*
|
|
@@ -210,6 +235,7 @@ interface VMatrix {
|
|
|
210
235
|
* @source https://wiki.facepunch.com/gmod/VMatrix:SetForward
|
|
211
236
|
*/
|
|
212
237
|
SetForward(self: VMatrix, forward: Vector): void;
|
|
238
|
+
|
|
213
239
|
/**
|
|
214
240
|
* Sets the right direction of the matrix.
|
|
215
241
|
*
|
|
@@ -219,24 +245,28 @@ interface VMatrix {
|
|
|
219
245
|
* @source https://wiki.facepunch.com/gmod/VMatrix:SetRight
|
|
220
246
|
*/
|
|
221
247
|
SetRight(self: VMatrix, right: Vector): void;
|
|
248
|
+
|
|
222
249
|
/**
|
|
223
250
|
* Modifies the scale of the matrix while preserving the rotation and translation.
|
|
224
251
|
* @realm shared
|
|
225
252
|
* @source https://wiki.facepunch.com/gmod/VMatrix:SetScale
|
|
226
253
|
*/
|
|
227
254
|
SetScale(self: VMatrix, scale: Vector): void;
|
|
255
|
+
|
|
228
256
|
/**
|
|
229
257
|
* Sets the absolute translation of the matrix.
|
|
230
258
|
* @realm shared
|
|
231
259
|
* @source https://wiki.facepunch.com/gmod/VMatrix:SetTranslation
|
|
232
260
|
*/
|
|
233
261
|
SetTranslation(self: VMatrix, translation: Vector): void;
|
|
262
|
+
|
|
234
263
|
/**
|
|
235
264
|
* Sets each component of the matrix.
|
|
236
265
|
* @realm shared
|
|
237
266
|
* @source https://wiki.facepunch.com/gmod/VMatrix:SetUnpacked
|
|
238
267
|
*/
|
|
239
268
|
SetUnpacked(self: VMatrix, e11: number, e12: number, e13: number, e14: number, e21: number, e22: number, e23: number, e24: number, e31: number, e32: number, e33: number, e34: number, e41: number, e42: number, e43: number, e44: number): void;
|
|
269
|
+
|
|
240
270
|
/**
|
|
241
271
|
* Sets the up direction of the matrix.
|
|
242
272
|
*
|
|
@@ -246,6 +276,7 @@ interface VMatrix {
|
|
|
246
276
|
* @source https://wiki.facepunch.com/gmod/VMatrix:SetUp
|
|
247
277
|
*/
|
|
248
278
|
SetUp(self: VMatrix, up: Vector): void;
|
|
279
|
+
|
|
249
280
|
/**
|
|
250
281
|
* Subtracts given matrix from this matrix.
|
|
251
282
|
*
|
|
@@ -253,12 +284,14 @@ interface VMatrix {
|
|
|
253
284
|
* @source https://wiki.facepunch.com/gmod/VMatrix:Sub
|
|
254
285
|
*/
|
|
255
286
|
Sub(self: VMatrix, input: VMatrix): void;
|
|
287
|
+
|
|
256
288
|
/**
|
|
257
289
|
* Converts the matrix to a 4x4 table. See [Global.Matrix](https://wiki.facepunch.com/gmod/Global.Matrix) function.
|
|
258
290
|
* @realm shared
|
|
259
291
|
* @source https://wiki.facepunch.com/gmod/VMatrix:ToTable
|
|
260
292
|
*/
|
|
261
293
|
ToTable(self: VMatrix): table;
|
|
294
|
+
|
|
262
295
|
/**
|
|
263
296
|
* Translates the matrix by the given vector aka. adds the vector to the translation.
|
|
264
297
|
*
|
|
@@ -268,12 +301,14 @@ interface VMatrix {
|
|
|
268
301
|
* @source https://wiki.facepunch.com/gmod/VMatrix:Translate
|
|
269
302
|
*/
|
|
270
303
|
Translate(self: VMatrix, translation: Vector): void;
|
|
304
|
+
|
|
271
305
|
/**
|
|
272
306
|
* Returns each component of the matrix, expanding rows before columns.
|
|
273
307
|
* @realm shared
|
|
274
308
|
* @source https://wiki.facepunch.com/gmod/VMatrix:Unpack
|
|
275
309
|
*/
|
|
276
310
|
Unpack(self: VMatrix): (number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number);
|
|
311
|
+
|
|
277
312
|
/**
|
|
278
313
|
* Sets all components of the matrix to 0, also known as a [null matrix](https://en.wikipedia.org/wiki/Zero_matrix).
|
|
279
314
|
*
|
|
@@ -284,39 +319,3 @@ interface VMatrix {
|
|
|
284
319
|
*/
|
|
285
320
|
Zero(self: VMatrix): void;
|
|
286
321
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|