Class WorldTransform

java.lang.Object
com.render.api.world.WorldTransform

public final class WorldTransform extends Object
Immutable local-to-world transform with finite double translation, finite float-representable scale, and a normalized finite nonzero quaternion. Zero scale axes are allowed and collapse the corresponding geometry.
  • Field Details

  • Constructor Details

    • WorldTransform

      public WorldTransform(net.minecraft.world.phys.Vec3 translation, org.joml.Quaternionfc rotation, net.minecraft.world.phys.Vec3 scale)
  • Method Details

    • at

      public static WorldTransform at(double x, double y, double z)
    • translation

      public net.minecraft.world.phys.Vec3 translation()
    • rotation

      public org.joml.Quaternionf rotation()
    • scale

      public net.minecraft.world.phys.Vec3 scale()
    • withTranslation

      public WorldTransform withTranslation(net.minecraft.world.phys.Vec3 value)
    • withTranslation

      public WorldTransform withTranslation(double x, double y, double z)
    • withRotation

      public WorldTransform withRotation(org.joml.Quaternionfc value)
    • withScale

      public WorldTransform withScale(net.minecraft.world.phys.Vec3 value)
    • withScale

      public WorldTransform withScale(double uniform)
    • transformPoint

      public net.minecraft.world.phys.Vec3 transformPoint(net.minecraft.world.phys.Vec3 point)
    • transformNormal

      public net.minecraft.world.phys.Vec3 transformNormal(net.minecraft.world.phys.Vec3 normal)
      Transforms a surface normal using the inverse transpose; collapsed axes contribute zero.