toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.math.geom
/
Vector3F
Vector3F
data
class
Vector3F
(
val
x
:
Float
,
val
y
:
Float
,
val
z
:
Float
)
:
IsAlmostEqualsF
<
Vector3F
>
Members
Members & Extensions
Constructors
Vector3F
Link copied to clipboard
constructor
(
x
:
Int
,
y
:
Int
,
z
:
Int
)
constructor
(
x
:
Double
,
y
:
Double
,
z
:
Double
)
constructor
(
x
:
Float
,
y
:
Float
,
z
:
Float
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
absolute
Value
Link copied to clipboard
val
absoluteValue
:
Vector3F
length
Link copied to clipboard
val
length
:
Float
length
Squared
Link copied to clipboard
val
lengthSquared
:
Float
x
Link copied to clipboard
val
x
:
Float
y
Link copied to clipboard
val
y
:
Float
z
Link copied to clipboard
val
z
:
Float
Functions
clamp
Link copied to clipboard
fun
Vector3F
.
clamp
(
min
:
Vector3F
,
max
:
Vector3F
)
:
Vector3F
fun
Vector3F
.
clamp
(
min
:
Double
,
max
:
Double
)
:
Vector3F
fun
Vector3F
.
clamp
(
min
:
Float
,
max
:
Float
)
:
Vector3F
cross
Link copied to clipboard
infix
fun
cross
(
v
:
Vector3F
)
:
Vector3F
div
Link copied to clipboard
operator
fun
div
(
v
:
Vector3F
)
:
Vector3F
operator
fun
div
(
v
:
Double
)
:
Vector3F
operator
fun
div
(
v
:
Float
)
:
Vector3F
operator
fun
div
(
v
:
Int
)
:
Vector3F
dot
Link copied to clipboard
infix
fun
dot
(
v
:
Vector3F
)
:
Float
get
Link copied to clipboard
operator
fun
get
(
index
:
Int
)
:
Float
inv
Link copied to clipboard
fun
inv
(
)
:
Vector3F
Vector3 with inverted (1f / v) components to this
is
Almost
Equals
Link copied to clipboard
open
override
fun
isAlmostEquals
(
other
:
Vector3F
,
epsilon
:
Float
)
:
Boolean
is
Na
N
Link copied to clipboard
fun
isNaN
(
)
:
Boolean
minus
Link copied to clipboard
operator
fun
minus
(
v
:
Vector3F
)
:
Vector3F
normalized
Link copied to clipboard
fun
normalized
(
)
:
Vector3F
plus
Link copied to clipboard
operator
fun
plus
(
v
:
Vector3F
)
:
Vector3F
reflected
Link copied to clipboard
fun
reflected
(
surfaceNormal
:
Vector3F
)
:
Vector3F
rem
Link copied to clipboard
operator
fun
rem
(
v
:
Vector3F
)
:
Vector3F
operator
fun
rem
(
v
:
Double
)
:
Vector3F
operator
fun
rem
(
v
:
Float
)
:
Vector3F
operator
fun
rem
(
v
:
Int
)
:
Vector3F
times
Link copied to clipboard
operator
fun
times
(
v
:
Vector3F
)
:
Vector3F
operator
fun
times
(
v
:
Double
)
:
Vector3F
operator
fun
times
(
v
:
Float
)
:
Vector3F
operator
fun
times
(
v
:
Int
)
:
Vector3F
to
Cylindrical
Link copied to clipboard
fun
Vector3F
.
toCylindrical
(
)
:
CylindricalVector
to
Double
Link copied to clipboard
fun
Vector3F
.
toDouble
(
)
:
Vector3D
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
to
Vector4
Link copied to clipboard
fun
toVector4
(
w
:
Float
=
1.0f
)
:
Vector4F
unary
Minus
Link copied to clipboard
operator
fun
unaryMinus
(
)
:
Vector3F
unary
Plus
Link copied to clipboard
operator
fun
unaryPlus
(
)
:
Vector3F