Skip to content

Commit 96335af

Browse files
committed
finale
1 parent 2f26e93 commit 96335af

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cyfra-core/src/main/scala/io/computenode/cyfra/core/expression/ops/NegativeElementOps.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import io.computenode.cyfra.core.expression.*
44
import io.computenode.cyfra.core.expression.Value.map
55
import io.computenode.cyfra.core.expression.{BuildInFunction, Value}
66

7+
import scala.annotation.targetName
8+
79
given [T <: NegativeType: Value]: NegativeElementOps[T] with {}
810
given [T <: NegativeType: Value]: NegativeElementOps[Vec2[T]] with {}
911
given [T <: NegativeType: Value]: NegativeElementOps[Vec3[T]] with {}

cyfra-core/src/main/scala/io/computenode/cyfra/core/main.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ import io.computenode.cyfra.core.expression.given
99
def main(): Unit =
1010
val x: Mat4x4[Float32] = Mat4x4(1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f)
1111
val y: Vec4[Float32] = Vec4(1.0f, 2.0f, 3.0f, 4.0f)
12-
val c = ???//x @ y
12+
val c = x * y
1313
println("Hello, Cyfra!")
1414
println(c)

0 commit comments

Comments
 (0)