We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b8728c commit e19cee4Copy full SHA for e19cee4
Sources/GameMath/3D Types (New)/Old+Compatibility/Ray3n+Compatibility.swift
@@ -0,0 +1,24 @@
1
+/*
2
+ * Copyright © 2025 Dustin Collins (Strega's Gate)
3
+ * All Rights Reserved.
4
+ *
5
+ * http://stregasgate.com
6
+ */
7
+
8
+public extension Ray3n where Scalar: BinaryInteger {
9
+ var oldRay: Ray3D {
10
+ return Ray3D(from: self.origin.oldVector, toward: self.direction.oldVector)
11
+ }
12
+}
13
14
+public extension Ray3n where Scalar: BinaryFloatingPoint {
15
16
17
18
19
20
21
+ init(oldRay ray: Ray3D) {
22
+ self.init(origin: .init(oldVector: ray.origin), direction: .init(oldVector: ray.direction))
23
24
0 commit comments