Module math
Source - Physical
- Units in physical pixels.
- ScaleFactor
- A scaling factor in points per pixel.
- degrees
- Shorthand for
Angle { radians: value * PI / 180.0 }
. - point
- Shorthand for
Point::new(x, y)
. - radians
- Shorthand for
Angle { radians: value }
. - rect
- Shorthand for
Rect::new(Point::new(x, y), Size::new(width, height))
. - screen_to_clip_scale
- Returns a scaling vector that can be used to convert screen coordinates
to clip coordinates in shaders.
- size
- Shorthand for
Size::new(x, y)
. - to_logical_point
- Convert a point from logical points to physical pixels.
- to_logical_point_from_recip
- Convert a point from logical points to physical pixels using the reciprocal of the scale factor.
- to_logical_point_from_recip_i32
- Convert a point from logical points to physical pixels using the reciprocal of the scale factor.
- to_logical_point_from_recip_u32
- Convert a point from logical points to physical pixels using the reciprocal of the scale factor.
- to_logical_point_i32
- Convert a point from logical points to physical pixels.
- to_logical_point_u32
- Convert a point from logical points to physical pixels.
- to_logical_rect
- Convert a rectangle from logical points to physical pixels.
- to_logical_rect_from_recip
- Convert a rectangle from logical points to physical pixels using the reciprocal of the scale factor.
- to_logical_rect_from_recip_i32
- Convert a rectangle from logical points to physical pixels using the reciprocal of the scale factor.
- to_logical_rect_from_recip_u32
- Convert a rectangle from logical points to physical pixels using the reciprocal of the scale factor.
- to_logical_rect_i32
- Convert a rectangle from logical points to physical pixels.
- to_logical_rect_u32
- Convert a rectangle from logical points to physical pixels.
- to_logical_size
- Convert a size from logical points to physical pixels.
- to_logical_size_from_recip
- Convert a size from logical points to physical pixels using the reciprocal of the scale factor.
- to_logical_size_from_recip_i32
- Convert a size from logical points to physical pixels using the reciprocal of the scale factor.
- to_logical_size_from_recip_u32
- Convert a size from logical points to physical pixels using the reciprocal of the scale factor.
- to_logical_size_i32
- Convert a size from logical points to physical pixels.
- to_logical_size_u32
- Convert a size from logical points to physical pixels.
- to_physical_point
- Convert a point from logical points to physical pixels.
- to_physical_rect
- Convert a rectangle from logical points to physical pixels.
- to_physical_size
- Convert a size from logical points to physical pixels.
- vector
- Shorthand for
Vector::new(x, y)
.
- Angle
- An angle in radians (f32).
- AngleF64
- An angle in radians (f64).
- Box2D
- Alias for
euclid::default::Box2D<f32>
- Box2DF64
- Alias for
euclid::default::Box2D<f64>
- PhysicalPoint
- A point in units of physical pixels.
- PhysicalPointI32
- A point in units of physical pixels.
- PhysicalPointU32
- A point in units of physical pixels.
- PhysicalRect
- A rectagngle in units of physical pixels.
- PhysicalRectI32
- A rectagngle in units of physical pixels.
- PhysicalRectU32
- A rectagngle in units of physical pixels.
- PhysicalSize
- A size in units of physical pixels.
- PhysicalSizeI32
- A size in units of physical pixels.
- PhysicalSizeU32
- A size in units of physical pixels.
- Point
- A point in units of logical points.
- PointF64
- A point in units of logical points.
- PointI32
- A point in units of logical points.
- Rect
- A rectangle in units of logical points.
- RectF64
- A rectangle in units of logical points.
- RectI32
- A rectangle in units of logical points.
- Rotation
- Alias for
euclid::default::Rotation2D<f32>
- RotationF64
- Alias for
euclid::default::Rotation2D<f64>
- Scale
- Alias for
euclid::default::Scale<f32>
- ScaleF64
- Alias for
euclid::default::Scale<f64>
- SideOffsets
- A group of 2D side offsets, which correspond to top/right/bottom/left for borders,
padding,and margins in CSS, optionally tagged with a unit.
- SideOffsetsF64
- A group of 2D side offsets, which correspond to top/right/bottom/left for borders,
padding,and margins in CSS, optionally tagged with a unit.
- Size
- A size in units of logical points.
- SizeF64
- A size in units of logical points.
- SizeI32
- A size in units of logical points.
- Transform
- Alias for
euclid::default::Transform2D<f32>
- TransformF64
- Alias for
euclid::default::Transform2D<f64>
- Translation
- Alias for
euclid::default::Translation2D<f32>
- TranslationF64
- Alias for
euclid::default::Translation2D<f64>
- Vector
- A vector in units of logical points.
- VectorF64
- A vector in units of logical points.
- ZIndex