toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.math.geom
/
MVector4
MVector4
class
MVector4
Deprecated
Members
Members & Extensions
Constructors
MVector4
Link copied to clipboard
constructor
(
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
data
Link copied to clipboard
val
data
:
FloatArray
length
Link copied to clipboard
val
length
:
Float
length3
Link copied to clipboard
val
length3
:
Float
length3Squared
Link copied to clipboard
val
length3Squared
:
Float
length
Squared
Link copied to clipboard
val
lengthSquared
:
Float
w
Link copied to clipboard
var
w
:
Float
x
Link copied to clipboard
var
x
:
Float
y
Link copied to clipboard
var
y
:
Float
z
Link copied to clipboard
var
z
:
Float
Functions
add
Link copied to clipboard
fun
add
(
l
:
MVector4
,
r
:
MVector4
)
:
MVector4
as
Int
Vector3D
Link copied to clipboard
fun
MVector4
.
asIntVector3D
(
)
:
MVector4Int
copy
From
Link copied to clipboard
fun
copyFrom
(
other
:
MVector4
)
:
MVector4
cross
Link copied to clipboard
fun
cross
(
a
:
MVector4
,
b
:
MVector4
)
:
MVector4
dot
Link copied to clipboard
fun
dot
(
v2
:
MVector4
)
:
Float
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
get
Link copied to clipboard
operator
fun
get
(
index
:
Int
)
:
Float
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
minus
Link copied to clipboard
operator
fun
minus
(
that
:
MVector4
)
:
MVector4
normalize
Link copied to clipboard
fun
normalize
(
vector
:
MVector4
=
this
)
:
MVector4
normalized
Link copied to clipboard
fun
normalized
(
out
:
MVector4
=
MVector4()
)
:
MVector4
plus
Link copied to clipboard
operator
fun
plus
(
that
:
MVector4
)
:
MVector4
scale
Link copied to clipboard
fun
scale
(
scale
:
Double
)
:
MVector4
fun
scale
(
scale
:
Float
)
:
MVector4
fun
scale
(
scale
:
Int
)
:
MVector4
set
Link copied to clipboard
operator
fun
set
(
index
:
Int
,
value
:
Float
)
set
To
Link copied to clipboard
fun
setTo
(
x
:
Double
,
y
:
Double
,
z
:
Double
)
:
MVector4
fun
setTo
(
x
:
Float
,
y
:
Float
,
z
:
Float
)
:
MVector4
fun
setTo
(
x
:
Int
,
y
:
Int
,
z
:
Int
)
:
MVector4
fun
setTo
(
x
:
Double
,
y
:
Double
,
z
:
Double
,
w
:
Double
)
:
MVector4
fun
setTo
(
x
:
Float
,
y
:
Float
,
z
:
Float
,
w
:
Float
)
:
MVector4
fun
setTo
(
x
:
Int
,
y
:
Int
,
z
:
Int
,
w
:
Int
)
:
MVector4
set
To
Func
Link copied to clipboard
inline
fun
setToFunc
(
func
:
(
index
:
Int
)
->
Float
)
:
MVector4
inline
fun
setToFunc
(
l
:
MVector4
,
r
:
MVector4
,
func
:
(
l
:
Float
,
r
:
Float
)
->
Float
)
:
MVector4
set
To
Interpolated
Link copied to clipboard
fun
setToInterpolated
(
left
:
MVector4
,
right
:
MVector4
,
t
:
Double
)
:
MVector4
sub
Link copied to clipboard
fun
sub
(
l
:
MVector4
,
r
:
MVector4
)
:
MVector4
times
Link copied to clipboard
operator
fun
times
(
scale
:
Float
)
:
MVector4
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
transform
Link copied to clipboard
fun
transform
(
mat
:
MMatrix3D
)
:
MVector4