Implement Default for Point
This commit is contained in:
parent
6c2e28d20e
commit
20d79a43cc
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
use crate::Vector;
|
use crate::Vector;
|
||||||
|
|
||||||
/// A 2D point.
|
/// A 2D point.
|
||||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
#[derive(Debug, Clone, Copy, PartialEq, Default)]
|
||||||
pub struct Point {
|
pub struct Point {
|
||||||
/// The X coordinate.
|
/// The X coordinate.
|
||||||
pub x: f32,
|
pub x: f32,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue