s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
coming soon
Gamejams
Date
Theme
Date announced very soon. Theme revealed when the jam starts.
$
50,000
prizepool
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Common Structs
Matrix
chevron_left
Common Structs
struct
Matrix
Constructors
functions
Matrix
Properties
data_object
Inverted
data_object
M11
data_object
M12
data_object
M13
data_object
M14
data_object
M21
data_object
M22
data_object
M23
data_object
M24
data_object
M31
data_object
M32
data_object
M33
data_object
M34
data_object
M41
data_object
M42
data_object
M43
data_object
M44
Methods
functions
Transform
functions
TransformNormal
functions
Transpose
Static Properties
data_object
Identity
Static Methods
functions
CreateMatrix3D
functions
CreateObliqueProjection
functions
CreateProjection
functions
CreateRotation
functions
CreateRotationX
functions
CreateRotationY
functions
CreateRotationZ
functions
CreateScale
functions
CreateSkew
functions
CreateSkewX
functions
CreateSkewY
functions
CreateTranslation
functions
CreateWorld
functions
Lerp
functions
Slerp
Matrix
Represents a 4x4 matrix.
struct
sealed
Sandbox.System
build
Constructors
1
Matrix
(
m11
,
m12
,
m13
,
m14
,
m21
,
m22
,
m23
,
m24
,
m31
,
m32
,
m33
,
m34
,
m41
,
m42
,
m43
,
m44
)
data_object
Properties
17
Inverted
Matrix
Returns inverse of this matrix.
M11
float
M12
float
M13
float
M14
float
M21
float
M22
float
M23
float
M24
float
M31
float
M32
float
M33
float
M34
float
M41
float
M42
float
M43
float
M44
float
functions
Methods
3
Transform
(
v
)
Vector4
Transforms a vector by a 4x4 matrix
TransformNormal
(
v
)
Vector3
Transforms a normal vector by a specified 4x4 matrix
Transpose
(
)
Matrix
Returns transposed version of this matrix, meaning columns in this matrix become rows in the returned matrix and rows in this matrix become columns in the returned one.
data_object
Static Properties
1
Identity
Matrix
Returns the multiplicative identity matrix.
functions
Static Methods
15
CreateMatrix3D
(
matrix
)
Matrix
CreateObliqueProjection
(
cameraTransform
,
clipPlane
,
projectionMatrix
)
Matrix
Create a projection matrix. The matrix will be in the correct format for the engine, and will also be reverse z.
CreateProjection
(
zNear
,
zFar
,
fovX
,
aspectRatio
,
clipSpace
)
Matrix
CreateRotation
(
rot
)
Matrix
CreateRotationX
(
degrees
)
Matrix
CreateRotationY
(
degrees
)
Matrix
CreateRotationZ
(
degrees
)
Matrix
CreateScale
(
scales
)
Matrix
CreateSkew
(
skew
)
Matrix
CreateSkewX
(
degrees
)
Matrix
CreateSkewY
(
degrees
)
Matrix
CreateTranslation
(
vec
)
Matrix
CreateWorld
(
position
,
forward
,
up
)
Matrix
Lerp
(
ma
,
mb
,
frac
)
Matrix
Performs linear interpolation from one matrix to another.
Slerp
(
ma
,
mb
,
frac
)
Matrix
Performs spherical interpolation from one matrix to another.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.