openrndr
Toggle table of contents
0.4.5-dev.17.uncommitted+81afe70
common
Platform filter
common
Switch theme
Search in API
openrndr
openrndr-kartifex
/
org.openrndr.kartifex
/
Vec
Vec
interface
Vec
<
T
:
Vec
<
T
>
>
:
Comparable
<
T
>
(
source
)
Inheritors
Vec1
Vec2
Vec3
Vec4
Members
Types
Companion
Link copied to clipboard
object
Companion
Functions
abs
Link copied to clipboard
open
fun
abs
(
)
:
T
add
Link copied to clipboard
open
fun
add
(
v
:
T
)
:
T
open
fun
add
(
n
:
Double
)
:
T
any
Link copied to clipboard
abstract
fun
any
(
f
:
DoublePredicate
)
:
Boolean
array
Link copied to clipboard
abstract
fun
array
(
)
:
DoubleArray
clamp
Link copied to clipboard
open
fun
clamp
(
min
:
T
,
max
:
T
)
:
T
open
fun
clamp
(
min
:
Double
,
max
:
Double
)
:
T
compare
To
Link copied to clipboard
abstract
operator
fun
compareTo
(
other
:
T
)
:
Int
dim
Link copied to clipboard
abstract
fun
dim
(
)
:
Int
div
Link copied to clipboard
open
operator
fun
div
(
v
:
T
)
:
T
open
operator
fun
div
(
k
:
Double
)
:
T
every
Link copied to clipboard
abstract
fun
every
(
f
:
DoublePredicate
)
:
Boolean
length
Link copied to clipboard
open
fun
length
(
)
:
Double
length
Squared
Link copied to clipboard
open
fun
lengthSquared
(
)
:
Double
map
Link copied to clipboard
abstract
fun
map
(
f
:
DoubleUnaryOperator
)
:
T
mul
Link copied to clipboard
open
fun
mul
(
v
:
T
)
:
T
open
fun
mul
(
k
:
Double
)
:
T
negate
Link copied to clipboard
open
fun
negate
(
)
:
T
norm
Link copied to clipboard
open
fun
norm
(
)
:
T
nth
Link copied to clipboard
abstract
fun
nth
(
idx
:
Int
)
:
Double
pseudo
Norm
Link copied to clipboard
open
fun
pseudoNorm
(
)
:
T
reduce
Link copied to clipboard
abstract
fun
reduce
(
f
:
DoubleBinaryOperator
)
:
Double
abstract
fun
reduce
(
f
:
DoubleBinaryOperator
,
init
:
Double
)
:
Double
sub
Link copied to clipboard
open
fun
sub
(
v
:
T
)
:
T
open
fun
sub
(
n
:
Double
)
:
T
zip
Link copied to clipboard
abstract
fun
zip
(
v
:
T
,
f
:
DoubleBinaryOperator
)
:
T