toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.math.geom
/
Matrix4
Matrix4
data
class
Matrix4
:
IsAlmostEqualsF
<
Matrix4
>
Useful for representing complete transforms: rotations, scales, translations, projections, etc.
Members
Members & Extensions
Constructors
Matrix4
Link copied to clipboard
constructor
(
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
c0
Link copied to clipboard
val
c0
:
Vector4F
c1
Link copied to clipboard
val
c1
:
Vector4F
c2
Link copied to clipboard
val
c2
:
Vector4F
c3
Link copied to clipboard
val
c3
:
Vector4F
determinant
Link copied to clipboard
val
determinant
:
Float
mutable
Link copied to clipboard
val
Matrix4
.
mutable
:
MMatrix4
r0
Link copied to clipboard
val
r0
:
Vector4F
r1
Link copied to clipboard
val
r1
:
Vector4F
r2
Link copied to clipboard
val
r2
:
Vector4F
r3
Link copied to clipboard
val
r3
:
Vector4F
v00
Link copied to clipboard
val
v00
:
Float
v01
Link copied to clipboard
val
v01
:
Float
v02
Link copied to clipboard
val
v02
:
Float
v03
Link copied to clipboard
val
v03
:
Float
v10
Link copied to clipboard
val
v10
:
Float
v11
Link copied to clipboard
val
v11
:
Float
v12
Link copied to clipboard
val
v12
:
Float
v13
Link copied to clipboard
val
v13
:
Float
v20
Link copied to clipboard
val
v20
:
Float
v21
Link copied to clipboard
val
v21
:
Float
v22
Link copied to clipboard
val
v22
:
Float
v23
Link copied to clipboard
val
v23
:
Float
v30
Link copied to clipboard
val
v30
:
Float
v31
Link copied to clipboard
val
v31
:
Float
v32
Link copied to clipboard
val
v32
:
Float
v33
Link copied to clipboard
val
v33
:
Float
Functions
c
Link copied to clipboard
fun
c
(
column
:
Int
)
:
Vector4F
copy
To
Columns
Link copied to clipboard
fun
copyToColumns
(
out
:
FloatArray
=
FloatArray(16)
,
offset
:
Int
=
0
)
:
FloatArray
copy
To
Rows
Link copied to clipboard
fun
copyToRows
(
out
:
FloatArray
=
FloatArray(16)
,
offset
:
Int
=
0
)
:
FloatArray
decompose
Link copied to clipboard
fun
decompose
(
)
:
TRS4
decompose
Rotation
Link copied to clipboard
fun
decomposeRotation
(
rowNormalise
:
Boolean
=
true
)
:
Quaternion
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
get
Link copied to clipboard
operator
fun
get
(
row
:
Int
,
column
:
Int
)
:
Float
get
At
Index
Link copied to clipboard
fun
getAtIndex
(
index
:
Int
)
:
Float
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
inverted
Link copied to clipboard
fun
inverted
(
)
:
Matrix4
is
Almost
Equals
Link copied to clipboard
open
override
fun
isAlmostEquals
(
other
:
Matrix4
,
epsilon
:
Float
)
:
Boolean
r
Link copied to clipboard
fun
r
(
row
:
Int
)
:
Vector4F
rotated
Link copied to clipboard
fun
rotated
(
euler
:
EulerRotation
)
:
Matrix4
fun
rotated
(
quat
:
Quaternion
)
:
Matrix4
fun
rotated
(
x
:
Angle
,
y
:
Angle
,
z
:
Angle
)
:
Matrix4
fun
rotated
(
angle
:
Angle
,
x
:
Double
,
y
:
Double
,
z
:
Double
)
:
Matrix4
fun
rotated
(
angle
:
Angle
,
x
:
Float
,
y
:
Float
,
z
:
Float
)
:
Matrix4
fun
rotated
(
angle
:
Angle
,
x
:
Int
,
y
:
Int
,
z
:
Int
)
:
Matrix4
scaled
Link copied to clipboard
fun
scaled
(
x
:
Double
,
y
:
Double
,
z
:
Double
,
w
:
Double
=
1.0
)
:
Matrix4
fun
scaled
(
x
:
Float
,
y
:
Float
,
z
:
Float
,
w
:
Float
=
1.0f
)
:
Matrix4
fun
scaled
(
x
:
Int
,
y
:
Int
,
z
:
Int
,
w
:
Int
=
1
)
:
Matrix4
times
Link copied to clipboard
operator
fun
times
(
that
:
Matrix4
)
:
Matrix4
operator
fun
times
(
scale
:
Float
)
:
Matrix4
to
Matrix3
Link copied to clipboard
fun
Matrix4
.
toMatrix3
(
)
:
Matrix3
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
to
TRS
Link copied to clipboard
fun
toTRS
(
)
:
TRS4
transform
Link copied to clipboard
fun
transform
(
v
:
Vector3F
)
:
Vector3F
fun
transform
(
v
:
Vector4F
)
:
Vector4F
transform
Transposed
Link copied to clipboard
fun
transformTransposed
(
v
:
Vector4F
)
:
Vector4F
translated
Link copied to clipboard
fun
translated
(
x
:
Double
,
y
:
Double
,
z
:
Double
,
w
:
Double
=
1.0
)
:
Matrix4
fun
translated
(
x
:
Float
,
y
:
Float
,
z
:
Float
,
w
:
Float
=
1.0f
)
:
Matrix4
fun
translated
(
x
:
Int
,
y
:
Int
,
z
:
Int
,
w
:
Int
=
1
)
:
Matrix4
transposed
Link copied to clipboard
fun
transposed
(
)
:
Matrix4