tuples: derive Default on Tuple.

This commit is contained in:
Bill Thiede 2021-07-21 19:40:12 -07:00
parent b42adcebfc
commit a553786807

View File

@ -2,7 +2,7 @@ use std::ops::{Add, Div, Mul, Neg, Sub};
use crate::{Float, EPSILON}; use crate::{Float, EPSILON};
#[derive(Debug, Copy, Clone)] #[derive(Debug, Default, Copy, Clone)]
pub struct Tuple { pub struct Tuple {
pub x: Float, pub x: Float,
pub y: Float, pub y: Float,