toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.math.geom
/
MVector3
MVector3
class
MVector3
:
IVector3
Deprecated
Members
Constructors
MVector3
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
length
Squared
Link copied to clipboard
val
lengthSquared
:
Float
vector
Link copied to clipboard
val
vector
:
Vector3F
x
Link copied to clipboard
open
override
var
x
:
Float
y
Link copied to clipboard
open
override
var
y
:
Float
z
Link copied to clipboard
open
override
var
z
:
Float
Functions
add
Link copied to clipboard
fun
add
(
l
:
MVector3
,
r
:
MVector3
)
:
MVector3
clone
Link copied to clipboard
fun
clone
(
)
:
MVector3
copy
From
Link copied to clipboard
fun
copyFrom
(
other
:
MVector3
)
:
MVector3
cross
Link copied to clipboard
fun
cross
(
a
:
MVector3
,
b
:
MVector3
)
:
MVector3
dot
Link copied to clipboard
fun
dot
(
v2
:
MVector3
)
:
Float
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
get
Link copied to clipboard
open
operator override
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
:
MVector3
)
:
MVector3
normalize
Link copied to clipboard
fun
normalize
(
vector
:
MVector3
=
this
)
:
MVector3
normalized
Link copied to clipboard
fun
normalized
(
out
:
MVector3
=
MVector3()
)
:
MVector3
plus
Link copied to clipboard
operator
fun
plus
(
that
:
MVector3
)
:
MVector3
scale
Link copied to clipboard
fun
scale
(
scale
:
Double
)
:
MVector3
fun
scale
(
scale
:
Float
)
:
MVector3
fun
scale
(
scale
:
Int
)
:
MVector3
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
)
:
MVector3
fun
setTo
(
x
:
Float
,
y
:
Float
,
z
:
Float
)
:
MVector3
fun
setTo
(
x
:
Int
,
y
:
Int
,
z
:
Int
)
:
MVector3
set
To
Func
Link copied to clipboard
inline
fun
setToFunc
(
func
:
(
index
:
Int
)
->
Float
)
:
MVector3
inline
fun
setToFunc
(
l
:
MVector4
,
r
:
MVector4
,
func
:
(
l
:
Float
,
r
:
Float
)
->
Float
)
:
MVector3
set
To
Interpolated
Link copied to clipboard
fun
setToInterpolated
(
left
:
MVector4
,
right
:
MVector4
,
t
:
Double
)
:
MVector3
sub
Link copied to clipboard
fun
sub
(
l
:
MVector3
,
r
:
MVector3
)
:
MVector3
times
Link copied to clipboard
operator
fun
times
(
scale
:
Float
)
:
MVector3
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
transform
Link copied to clipboard
fun
transform
(
mat
:
MMatrix3D
)
:
MVector3
transformed
Link copied to clipboard
fun
transformed
(
mat
:
MMatrix3D
,
out
:
MVector3
=
MVector3()
)
:
MVector3