Interface VectorOperation
- All Known Implementing Classes:
MatrixVectorOperation
,SimpleVectorOperation
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.block.BlockFace
Gets the block face of a sign given upon instantiationorg.bukkit.Axis
Gets the normal axis orthogonal to the iris planeorg.bukkit.util.Vector
performToAbstractSpaceOperation
(@NotNull org.bukkit.util.Vector vector) Performs this vector operation on the given vectororg.bukkit.util.BlockVector
performToRealSpaceOperation
(@NotNull org.bukkit.util.BlockVector vector) Performs the reverse of this vector operation on the given vectororg.bukkit.util.Vector
performToRealSpaceOperation
(@NotNull org.bukkit.util.Vector vector) Performs the reverse of this vector operation on the given vectorvoid
setFlipZAxis
(boolean flipZAxis) Sets whether to flip the Z- axis
-
Method Details
-
getFacing
org.bukkit.block.BlockFace getFacing()Gets the block face of a sign given upon instantiation- Returns:
The block face of a sign given upon instantiation
-
getIrisNormal
org.bukkit.Axis getIrisNormal()Gets the normal axis orthogonal to the iris planeSaid another way, get the axis going directly towards or away from a stargate's entrance.
- Returns:
The normal axis orthogonal to the iris plane
-
setFlipZAxis
void setFlipZAxis(boolean flipZAxis) Sets whether to flip the Z- axis- Parameters:
flipZAxis
-Whether to flip the z-axis
-
performToAbstractSpaceOperation
org.bukkit.util.Vector performToAbstractSpaceOperation(@NotNull @NotNull org.bukkit.util.Vector vector) Performs this vector operation on the given vectorInverse operation of doInverse; A vector operation that rotates around the origin, and flips the z-axis. Does not permute input vector
- Parameters:
vector
-The vector to perform the operation on
- Returns:
- vector
A new vector with the operation applied
-
performToRealSpaceOperation
org.bukkit.util.Vector performToRealSpaceOperation(@NotNull @NotNull org.bukkit.util.Vector vector) Performs the reverse of this vector operation on the given vectorInverse operation of doOperation; A vector operation that rotates around the origin and flips the z-axis. Does not permute input vector
- Parameters:
vector
-The vector to perform the inverse operation on
- Returns:
- vector
A new vector with the inverse operation applied
-
performToRealSpaceOperation
org.bukkit.util.BlockVector performToRealSpaceOperation(@NotNull @NotNull org.bukkit.util.BlockVector vector) Performs the reverse of this vector operation on the given vectorInverse operation of doOperation; A vector operation that rotates around the origin and flips the z-axis. Does not permute input vector
- Parameters:
vector
-The vector to perform the inverse operation on
- Returns:
- vector
A new vector with the inverse operation applied
-