Interface VectorOperation

All Known Implementing Classes:
MatrixVectorOperation, SimpleVectorOperation

public interface VectorOperation
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.block.BlockFace
    Gets the block face of a sign given upon instantiation
    org.bukkit.Axis
    Gets the normal axis orthogonal to the iris plane
    org.bukkit.util.Vector
    performToAbstractSpaceOperation(@NotNull org.bukkit.util.Vector vector)
    Performs this vector operation on the given vector
    org.bukkit.util.BlockVector
    performToRealSpaceOperation(@NotNull org.bukkit.util.BlockVector vector)
    Performs the reverse of this vector operation on the given vector
    org.bukkit.util.Vector
    performToRealSpaceOperation(@NotNull org.bukkit.util.Vector vector)
    Performs the reverse of this vector operation on the given vector
    void
    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 plane

      Said 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 vector

      Inverse 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 vector

      Inverse 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 vector

      Inverse 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