CourtDimensions
The CourtDimensions dataclass holds the official physical measurements of a padel court. All values are expressed in meters.
Properties
- Name
length- Type
- float
- Description
Total length of the court in meters.
- Name
width- Type
- float
- Description
Total width of the court in meters.
- Name
net_height_center- Type
- float
- Description
Height of the net at its center point in meters.
- Name
net_height_posts- Type
- float
- Description
Height of the net at the posts in meters.
- Name
service_line_distance_from_back- Type
- float
- Description
Distance from the back wall to the nearest service line in meters.
- Name
back_wall_height- Type
- float
- Description
Height of the back walls in meters. Always 4.0 m per FIP regulations.
- Name
side_wall_height- Type
- float
- Description
Height of the side walls in meters. 3.0 m for Enclosure Variant 1, 4.0 m for Variant 2.
Initialization
Creates a new instance of CourtDimensions.
Keyword Arguments
- Name
length- Type
- float
- Description
Total length of the court.
- Name
width- Type
- float
- Description
Total width of the court.
- Name
net_height_center- Type
- float
- Description
Height of the net at its center point.
- Name
net_height_posts- Type
- float
- Description
Height of the net at the posts.
- Name
service_line_distance_from_back- Type
- float
- Description
Distance from the back wall to the service line.
- Name
back_wall_height- Type
- float
- Description
Height of the back walls. Always 4.0 m per FIP regulations, for both enclosure variants.
- Name
side_wall_height- Type
- float
- Description
Height of the side walls. 3.0 m for Variant 1, 4.0 m for Variant 2.
Instantiation
from padelkit import CourtDimensions
dims = CourtDimensions(
length=20.0,
width=10.0,
net_height_center=0.88,
net_height_posts=0.92,
service_line_distance_from_back=3.0,
back_wall_height=4.0,
side_wall_height=3.0,
)
Output structure
CourtDimensions(
length=20.0,
width=10.0,
net_height_center=0.88,
net_height_posts=0.92,
service_line_distance_from_back=3.0,
back_wall_height=4.0,
side_wall_height=3.0
)
FIP Standard
Returns a CourtDimensions instance pre-populated with the standard measurements defined by the International Padel Federation (FIP). These correspond to an Enclosure Variant 1 court.
Usage
from padelkit import CourtDimensions
dims = CourtDimensions.fip_standard()
Output
CourtDimensions(
length=20.0,
width=10.0,
net_height_center=0.88,
net_height_posts=0.92,
service_line_distance_from_back=3.0,
back_wall_height=4.0,
side_wall_height=3.0
)