Additional Information:
protocol Surface {
//Some general stuff for the intersection (not implemented yet)
}
struct Plane: Surface {
var point: SIMD3
var normal: SIMD3
}
struct Zylinder: Surface {
var point: SIMD3
var vector: SIMD3
var d: Double
}
struct Customsurface: Surface {
//not implement yet
//You will be able to creat any shap you want
}
So I want a function which has more implementations, so I can short cut a plane plane intersection. This functionality should still be available, when I intersect two items of [Surface]. (Zylinder is just an additional Type which is very common.)
I hope it is more clear now.
Topic:
Programming Languages
SubTopic:
Swift
Tags: