openrndr
0.4.5-dev.64+2ea7a58
common
openrndr-kartifex
/
org.openrndr.kartifex
/
Vec3
Vec3
@
JvmRecord
data
class
Vec3
(
val
x
:
Double
,
val
y
:
Double
,
val
z
:
Double
)
:
Vec
<
Vec3
>
(
source
)
Members
Constructors
Vec3
Link copied to clipboard
constructor
(
x
:
Double
,
y
:
Double
,
z
:
Double
)
Types
Companion
Link copied to clipboard
object
Companion
Functions
abs
Link copied to clipboard
open
fun
abs
(
)
:
Vec3
add
Link copied to clipboard
open
fun
add
(
n
:
Double
)
:
Vec3
open
fun
add
(
v
:
Vec3
)
:
Vec3
any
Link copied to clipboard
open
override
fun
any
(
f
:
DoublePredicate
)
:
Boolean
array
Link copied to clipboard
open
override
fun
array
(
)
:
DoubleArray
clamp
Link copied to clipboard
open
fun
clamp
(
min
:
Double
,
max
:
Double
)
:
Vec3
open
fun
clamp
(
min
:
Vec3
,
max
:
Vec3
)
:
Vec3
compare
To
Link copied to clipboard
open
operator override
fun
compareTo
(
other
:
Vec3
)
:
Int
dim
Link copied to clipboard
open
override
fun
dim
(
)
:
Int
div
Link copied to clipboard
open
operator
fun
div
(
k
:
Double
)
:
Vec3
open
operator
fun
div
(
v
:
Vec3
)
:
Vec3
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
every
Link copied to clipboard
open
override
fun
every
(
f
:
DoublePredicate
)
:
Boolean
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
length
Link copied to clipboard
open
fun
length
(
)
:
Double
length
Squared
Link copied to clipboard
open
fun
lengthSquared
(
)
:
Double
map
Link copied to clipboard
open
override
fun
map
(
f
:
DoubleUnaryOperator
)
:
Vec3
mul
Link copied to clipboard
open
fun
mul
(
k
:
Double
)
:
Vec3
open
fun
mul
(
v
:
Vec3
)
:
Vec3
negate
Link copied to clipboard
open
fun
negate
(
)
:
Vec3
norm
Link copied to clipboard
open
fun
norm
(
)
:
Vec3
nth
Link copied to clipboard
open
override
fun
nth
(
idx
:
Int
)
:
Double
pseudo
Norm
Link copied to clipboard
open
fun
pseudoNorm
(
)
:
Vec3
reduce
Link copied to clipboard
open
override
fun
reduce
(
f
:
DoubleBinaryOperator
)
:
Double
open
override
fun
reduce
(
f
:
DoubleBinaryOperator
,
init
:
Double
)
:
Double
sub
Link copied to clipboard
open
fun
sub
(
n
:
Double
)
:
Vec3
open
fun
sub
(
v
:
Vec3
)
:
Vec3
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
vec2
Link copied to clipboard
fun
vec2
(
)
:
Vec2
vec4
Link copied to clipboard
fun
vec4
(
w
:
Double
)
:
Vec4
zip
Link copied to clipboard
open
override
fun
zip
(
v
:
Vec3
,
f
:
DoubleBinaryOperator
)
:
Vec3
Properties
x
Link copied to clipboard
val
x
:
Double
y
Link copied to clipboard
val
y
:
Double
z
Link copied to clipboard
val
z
:
Double