ManipulationTransformHandler
ManipulationTransformHandler
Core transform operations for manipulated objects (engine-agnostic). Handles rotation, flip, and other transform operations without engine dependencies. Responsibilities:
- Apply rotation transformations
- Apply horizontal/vertical flips
- Preserve transform state
- Provide rotation utility functions
Project: GridPlacement v6.0
Layer: Core
Source: Core/Services/Manipulation/ManipulationTransformHandler.cs
Namespace: GridBuilding.Core.Services.Manipulation
Kind: class
Parsing Method: AST-based (Roslyn) - NOT regex
⚠️ IMPORTANT: This documentation was generated using AST parsing, not regex.
Methods
ApplyRotation
Applies rotation to target transform.
Returns: float
Parameters:
float currentRotationfloat degrees
ApplyFlipHorizontal
Applies horizontal flip (mirror across Y axis).
Returns: CoreVector2
Parameters:
CoreVector2 currentScale
ApplyFlipVertical
Applies vertical flip (mirror across X axis).
Returns: CoreVector2
Parameters:
CoreVector2 currentScale
ApplyRotationRadians
Applies rotation in radians to target transform.
Returns: float
Parameters:
float currentRotationfloat radians
SetRotation
Sets absolute rotation.
Returns: float
Parameters:
float degrees
SetRotationRadians
Sets absolute rotation in radians.
Returns: float
Parameters:
float radians
ResetRotation
Resets rotation to identity (0 degrees).
Returns: float
ResetScale
Resets scale to identity (1, 1).
Returns: CoreVector2
IsFlippedHorizontal
Checks if the scale is flipped horizontally.
Returns: bool
Parameters:
CoreVector2 scale
IsFlippedVertical
Checks if the scale is flipped vertically.
Returns: bool
Parameters:
CoreVector2 scale
NormalizeRotation
Normalizes rotation to 0-360 degree range.
Returns: float
Parameters:
float degrees
NormalizeRotationRadians
Normalizes rotation to 0-2π radian range.
Returns: float
Parameters:
float radians
DegreesToRadians
Converts degrees to radians.
Returns: float
Parameters:
float degrees
RadiansToDegrees
Converts radians to degrees.
Returns: float
Parameters:
float radians
ApplySnappedRotation
Applies a rotation that snaps to the nearest increment.
Returns: float
Parameters:
float currentRotationfloat degreesfloat increment