commonMain.dsl.functions.IntVectorFunctions.kt Maven / Gradle / Ivy
//package org.openrndr.extra.shadergenerator.phrases.dsl.functions
//
//import org.openrndr.extra.shadergenerator.phrases.dsl.FunctionSymbol1
//import org.openrndr.extra.shadergenerator.phrases.dsl.Symbol
//import org.openrndr.math.*
//import kotlin.jvm.JvmName
//
//@Suppress("INAPPLICABLE_JVM_NAME")
//interface IntVectorFunctions {
//
// @JvmName("toDoubleSiv2")
// fun Symbol.toDouble(): Symbol = FunctionSymbol1(p0 = this, function = "vec2($0)")
// @JvmName("toDoubleSiv3")
// fun Symbol.toDouble(): Symbol = FunctionSymbol1(p0 = this, function = "vec3($0)")
// @JvmName("toDoubleSiv4")
// fun Symbol.toDouble(): Symbol = FunctionSymbol1(p0 = this, function = "vec4($0)")
//
//
// val Symbol.x: Symbol
// @JvmName("xSiv2")
// get() = FunctionSymbol1(p0 = this, function = "$0.x")
//
// val Symbol.y: Symbol
// @JvmName("ySiv2")
// get() = FunctionSymbol1(p0 = this, function = "$0.y")
//
// val Symbol.x: Symbol
// @JvmName("xSiv3")
// get() = FunctionSymbol1(p0 = this, function = "$0.x")
//
// val Symbol.y: Symbol
// @JvmName("ySiv3")
// get() = FunctionSymbol1(p0 = this, function = "$0.y")
//
// val Symbol.z: Symbol
// @JvmName("zSiv3")
// get() = FunctionSymbol1(p0 = this, function = "$0.z")
//
//
// val Symbol.x: Symbol
// @JvmName("xSiv4")
// get() = FunctionSymbol1(p0 = this, function = "$0.x")
//
// val Symbol.y: Symbol
// @JvmName("ySiv4")
// get() = FunctionSymbol1(p0 = this, function = "$0.y")
//
// val Symbol.z: Symbol
// @JvmName("zSiv4")
// get() = FunctionSymbol1(p0 = this, function = "$0.z")
//
// val Symbol.w: Symbol
// @JvmName("wSiv4")
// get() = FunctionSymbol1(p0 = this, function = "$0.w")
//
// val Symbol.xyz: Symbol
// @JvmName("xyzSiv4")
// get() = FunctionSymbol1(p0 = this, function = "$0.xyz")
//}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy