mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
Fix documentation on RegularPolygon (#8164)
A `RegularPolygon` is described by the circumscribed radius, not the inscribed radius. ## Objective - Correct documentation for `RegularPolygon` ## Solution - Use the correct term --------- Co-authored-by: Paul Hüber <phueber@kernsp.in> Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
This commit is contained in:
parent
ce33354cee
commit
4f16d6e0dc
1 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,9 @@ use wgpu::PrimitiveTopology;
|
|||
/// A regular polygon in the `XY` plane
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct RegularPolygon {
|
||||
/// Inscribed radius in the `XY` plane.
|
||||
/// Circumscribed radius in the `XY` plane.
|
||||
///
|
||||
/// In other words, the vertices of this polygon will all touch a circle of this radius.
|
||||
pub radius: f32,
|
||||
/// Number of sides.
|
||||
pub sides: usize,
|
||||
|
|
Loading…
Reference in a new issue