toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.math.geom
/
Matrix
/
Companion
Companion
object
Companion
Members
Properties
IDENTITY
Link copied to clipboard
val
IDENTITY
:
Matrix
Na
N
Link copied to clipboard
val
NaN
:
Matrix
NIL
Link copied to clipboard
val
NIL
:
Matrix
Functions
from
Array
Link copied to clipboard
fun
fromArray
(
value
:
DoubleArray
,
offset
:
Int
=
0
)
:
Matrix
fun
fromArray
(
value
:
FloatArray
,
offset
:
Int
=
0
)
:
Matrix
from
Transform
Link copied to clipboard
fun
fromTransform
(
transform
:
MatrixTransform
,
pivotX
:
Double
=
0.0
,
pivotY
:
Double
=
0.0
)
:
Matrix
fun
fromTransform
(
x
:
Double
,
y
:
Double
,
rotation
:
Angle
=
Angle.ZERO
,
scaleX
:
Double
=
1.0
,
scaleY
:
Double
=
1.0
,
skewX
:
Angle
=
Angle.ZERO
,
skewY
:
Angle
=
Angle.ZERO
,
pivotX
:
Double
=
0.0
,
pivotY
:
Double
=
0.0
)
:
Matrix
interpolated
Link copied to clipboard
fun
interpolated
(
l
:
Matrix
,
r
:
Matrix
,
ratio
:
Ratio
)
:
Matrix
invoke
Link copied to clipboard
operator
fun
invoke
(
)
:
Matrix
is
Almost
Equals
Link copied to clipboard
fun
isAlmostEquals
(
a
:
Matrix
,
b
:
Matrix
,
epsilon
:
Double
=
1.0E-5
)
:
Boolean
multiply
Link copied to clipboard
fun
multiply
(
l
:
Matrix
,
r
:
Matrix
)
:
Matrix
rotating
Link copied to clipboard
fun
rotating
(
angle
:
Angle
)
:
Matrix
skewing
Link copied to clipboard
fun
skewing
(
skewX
:
Angle
,
skewY
:
Angle
)
:
Matrix
transform
Link copied to clipboard
fun
transform
(
a
:
Float
,
b
:
Float
,
c
:
Float
,
d
:
Float
,
tx
:
Float
,
ty
:
Float
,
p
:
Point
)
:
Point
translating
Link copied to clipboard
fun
translating
(
delta
:
Point
)
:
Matrix