-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converge rotation and translation to transformations
- Loading branch information
Showing
7 changed files
with
177 additions
and
506 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
api/src/main/java/net/countercraft/movecraft/util/AffineTransformation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package net.countercraft.movecraft.util; | ||
|
||
import net.countercraft.movecraft.MovecraftLocation; | ||
import net.countercraft.movecraft.MovecraftRotation; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
// TODO: Implement with 4d matrix | ||
public record AffineTransformation(){ | ||
public static @NotNull AffineTransformation NONE = null; | ||
public static @NotNull AffineTransformation of(MovecraftLocation translation){ return null; } | ||
public static @NotNull AffineTransformation of(MovecraftRotation rotation){ return null; } | ||
public @NotNull AffineTransformation mult(AffineTransformation other){ return null; } | ||
public @NotNull MovecraftLocation apply(MovecraftLocation location){ return location; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.