derive Clone/Copy/Debug trio for shape::Cylinder (#9705)

# Objective

I needed to copy a cylinder. Can be done with other shapes already.

## Solution

Add proper `#[derive(..)]` attribute,
This commit is contained in:
Kamil Koczurek 2023-09-05 21:06:04 +02:00 committed by GitHub
parent 118509e4aa
commit d04e4bbde1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@ use crate::mesh::{Indices, Mesh};
use wgpu::PrimitiveTopology;
/// A cylinder which stands on the XZ plane
#[derive(Clone, Copy, Debug)]
pub struct Cylinder {
/// Radius in the XZ plane.
pub radius: f32,