We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebb276d commit e89f9d6Copy full SHA for e89f9d6
src/main/kotlin/graphics/scenery/Origin.kt
@@ -8,7 +8,18 @@ import org.joml.Vector3f
8
* @author Ulrik Guenther <hello@ulrik.is>
9
*/
10
sealed class Origin {
11
- object Center: Origin()
12
- object FrontBottomLeft: Origin()
13
- class Custom(val origin: Vector3f): Origin()
+ /**
+ * Volume origin will be the center of the volume.
+ */
14
+ data object Center: Origin()
15
+
16
17
+ * Volume origin will be the front, bottom, left corner of the volume.
18
19
+ data object FrontBottomLeft: Origin()
20
21
22
+ * Volume origin will be the custom vector given as [origin].
23
24
+ data class Custom(val origin: Vector3f): Origin()
25
}
0 commit comments