geometric_analysis_45_degree_test

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Geometric Analysis Test for 45° Transform Failures

This test suite analyzes the actual geometric properties of 45° skew and rotation transforms applied to 32x32 squares to determine if the expected tile counts are geometrically accurate or need adjustment.

Source File: /addons/grid_building/test/collision/geometry/geometric_analysis_45_degree_test.gd

Extends: GdUnitTestSuite

Public Methods

test_45_degree_skew_square_geometric_analysis

1
test_45_degree_skew_square_geometric_analysis() -> void

test_45_degree_rotation_square_geometric_analysis

1
test_45_degree_rotation_square_geometric_analysis() -> void

test_determine_correct_expectations_for_45_degree_transforms

1
test_determine_correct_expectations_for_45_degree_transforms() -> void

Private Methods

_calculate_polygon_area

1
_calculate_polygon_area(vertices: PackedVector2Array) -> float

Flags: private

Helper function to calculate polygon area using shoelace formula


_get_bounding_box

1
_get_bounding_box(vertices: PackedVector2Array) -> Dictionary

Flags: private

Helper function to get bounding box of polygon


_analyze_tile_intersection

1
2
3
4
_analyze_tile_intersection(
    vertices: PackedVector2Array,
    tile_size: int
) -> Dictionary

Flags: private

Helper function to analyze tile grid intersection



Grid Building v5.0.8 | Generated 24/05/2026