Struct bracket_terminal::prelude::Point [−][src]
Expand description
Helper struct defining a 2D point in space.
Fields
x: i32y: i32Implementations
Create a new point from an x/y coordinate.
Create a new point from i32, this can be constant
Helper for map index conversion
Trait Implementations
Overloads: We support basic point math Support adding a point to a point
Support adding an int to a point
Performs the += operation. Read more
Support dividing a point by a point
Support dividing a point by an f32
Support dividing a point by an int
Performs the /= operation. Read more
Support multiplying a point by a point
Support multiplying a point by an f32
Support multiplying a point by an int
Performs the *= operation. Read more
Support subtracting a point from a point
Support subtracting an int from a point
Performs the -= operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for Pointimpl UnwindSafe for PointBlanket Implementations
Mutably borrows from an owned value. Read more