Interface IForgeTransformation
- All Known Implementing Classes:
- Transformation
public interface IForgeTransformation
Extension interface for 
Transformation.- 
Method SummaryModifier and TypeMethodDescriptiondefault TransformationapplyOrigin(org.joml.Vector3f origin) Returns a new transformation with a changed origin by applying the given parameter (which is relative to the current origin).default TransformationConverts and returns a new transformation based on this transformation from assuming a center-block system to an opposing-corner-block system.default TransformationConverts and returns a new transformation based on this transformation from assuming an opposing-corner-block system to a center-block system.default booleanReturns whether this transformation is the identity transformation.default DirectionrotateTransform(Direction facing) Rotates the direction according to this transformation and returns the nearestDirectionto the resulting direction.private Transformationself()default voidtransformNormal(org.joml.Vector3f normal) Transforms the normal according to this transformation and normalizes it.default voidtransformPosition(org.joml.Vector4f position) Transforms the position according to this transformation.
- 
Method Details- 
self
- 
isIdentitydefault boolean isIdentity()Returns whether this transformation is the identity transformation.- Returns:
- whether this transformation is the identity transformation
- See Also:
 
- 
transformPositiondefault void transformPosition(org.joml.Vector4f position) Transforms the position according to this transformation.- Parameters:
- position- the position to transform
 
- 
transformNormaldefault void transformNormal(org.joml.Vector3f normal) Transforms the normal according to this transformation and normalizes it.- Parameters:
- normal- the normal to transform
 
- 
rotateTransformRotates the direction according to this transformation and returns the nearestDirectionto the resulting direction.- Parameters:
- facing- the direction to transform
- Returns:
- the Directionvalue nearest to the resulting transformed direction
- See Also:
 
- 
blockCenterToCornerConverts and returns a new transformation based on this transformation from assuming a center-block system to an opposing-corner-block system.- Returns:
- a new transformation using the opposing-corner-block system
 
- 
blockCornerToCenterConverts and returns a new transformation based on this transformation from assuming an opposing-corner-block system to a center-block system.- Returns:
- a new transformation using the center-block system
 
- 
applyOriginReturns a new transformation with a changed origin by applying the given parameter (which is relative to the current origin). This can be used for switching between coordinate systems.- Parameters:
- origin- the new origin as relative to the current origin
- Returns:
- a new transformation with a changed origin
 
 
-