toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.math.geom
/
Vector4F
Vector4F
data
class
Vector4F
(
val
x
:
Float
,
val
y
:
Float
,
val
z
:
Float
,
val
w
:
Float
)
Members
Members & Extensions
Constructors
Vector4F
Link copied to clipboard
constructor
(
xyz
:
Vector3F
,
w
:
Float
)
constructor
(
x
:
Int
,
y
:
Int
,
z
:
Int
,
w
:
Int
)
constructor
(
x
:
Double
,
y
:
Double
,
z
:
Double
,
w
:
Double
)
constructor
(
x
:
Float
,
y
:
Float
,
z
:
Float
,
w
:
Float
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
absolute
Value
Link copied to clipboard
val
absoluteValue
:
Vector4F
length
Link copied to clipboard
val
length
:
Float
length3
Link copied to clipboard
val
length3
:
Float
Only taking into accoount x, y, z
length3Squared
Link copied to clipboard
val
length3Squared
:
Float
length
Squared
Link copied to clipboard
val
lengthSquared
:
Float
w
Link copied to clipboard
val
w
:
Float
x
Link copied to clipboard
val
x
:
Float
xyz
Link copied to clipboard
val
xyz
:
Vector3F
y
Link copied to clipboard
val
y
:
Float
z
Link copied to clipboard
val
z
:
Float
Functions
clamp
Link copied to clipboard
fun
Vector4F
.
clamp
(
min
:
Vector4F
,
max
:
Vector4F
)
:
Vector4F
fun
Vector4F
.
clamp
(
min
:
Double
,
max
:
Double
)
:
Vector4F
fun
Vector4F
.
clamp
(
min
:
Float
,
max
:
Float
)
:
Vector4F
copy
To
Link copied to clipboard
fun
copyTo
(
out
:
FloatArray
,
offset
:
Int
=
0
)
:
FloatArray
div
Link copied to clipboard
operator
fun
div
(
v
:
Vector4F
)
:
Vector4F
operator
fun
div
(
v
:
Float
)
:
Vector4F
dot
Link copied to clipboard
infix
fun
dot
(
v
:
Vector4F
)
:
Float
get
Link copied to clipboard
operator
fun
get
(
index
:
Int
)
:
Float
inv
Link copied to clipboard
fun
inv
(
)
:
Vector4F
Vector4 with inverted (1f / v) components to this
is
Almost
Equals
Link copied to clipboard
fun
isAlmostEquals
(
other
:
Vector4F
,
epsilon
:
Float
=
1.0E-5f
)
:
Boolean
is
Na
N
Link copied to clipboard
fun
isNaN
(
)
:
Boolean
minus
Link copied to clipboard
operator
fun
minus
(
v
:
Vector4F
)
:
Vector4F
normalized
Link copied to clipboard
fun
normalized
(
)
:
Vector4F
plus
Link copied to clipboard
operator
fun
plus
(
v
:
Vector4F
)
:
Vector4F
rem
Link copied to clipboard
operator
fun
rem
(
v
:
Vector4F
)
:
Vector4F
operator
fun
rem
(
v
:
Float
)
:
Vector4F
times
Link copied to clipboard
operator
fun
times
(
v
:
Vector4F
)
:
Vector4F
operator
fun
times
(
v
:
Float
)
:
Vector4F
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
to
Vector3
Link copied to clipboard
fun
toVector3
(
)
:
Vector3F
unary
Minus
Link copied to clipboard
operator
fun
unaryMinus
(
)
:
Vector4F
unary
Plus
Link copied to clipboard
operator
fun
unaryPlus
(
)
:
Vector4F