Struct three_d::renderer::control::LogicalPoint
source · pub struct LogicalPoint {
pub x: f32,
pub y: f32,
/* private fields */
}Expand description
A pixel coordinate in logical pixels, where x is on the horizontal axis with zero being at the left edge
and y is on the vertical axis with zero being at top edge.
Fields§
§x: f32The horizontal pixel distance from the left edge.
y: f32The vertical pixel distance from the top edge.
Trait Implementations§
source§impl Clone for LogicalPoint
impl Clone for LogicalPoint
source§fn clone(&self) -> LogicalPoint
fn clone(&self) -> LogicalPoint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for LogicalPoint
impl Debug for LogicalPoint
source§impl From<&LogicalPoint> for (f32, f32)
impl From<&LogicalPoint> for (f32, f32)
source§fn from(value: &LogicalPoint) -> Self
fn from(value: &LogicalPoint) -> Self
Converts to this type from the input type.
source§impl From<&LogicalPoint> for PhysicalPoint
impl From<&LogicalPoint> for PhysicalPoint
source§fn from(value: &LogicalPoint) -> Self
fn from(value: &LogicalPoint) -> Self
Converts to this type from the input type.
source§impl From<&LogicalPoint> for Vec2
impl From<&LogicalPoint> for Vec2
source§fn from(value: &LogicalPoint) -> Self
fn from(value: &LogicalPoint) -> Self
Converts to this type from the input type.
source§impl From<LogicalPoint> for (f32, f32)
impl From<LogicalPoint> for (f32, f32)
source§fn from(value: LogicalPoint) -> Self
fn from(value: LogicalPoint) -> Self
Converts to this type from the input type.
source§impl From<LogicalPoint> for PhysicalPoint
impl From<LogicalPoint> for PhysicalPoint
source§fn from(value: LogicalPoint) -> Self
fn from(value: LogicalPoint) -> Self
Converts to this type from the input type.
source§impl From<LogicalPoint> for Vec2
impl From<LogicalPoint> for Vec2
source§fn from(value: LogicalPoint) -> Self
fn from(value: LogicalPoint) -> Self
Converts to this type from the input type.
source§impl PartialEq for LogicalPoint
impl PartialEq for LogicalPoint
source§fn eq(&self, other: &LogicalPoint) -> bool
fn eq(&self, other: &LogicalPoint) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for LogicalPoint
impl StructuralPartialEq for LogicalPoint
Auto Trait Implementations§
impl RefUnwindSafe for LogicalPoint
impl Send for LogicalPoint
impl Sync for LogicalPoint
impl Unpin for LogicalPoint
impl UnwindSafe for LogicalPoint
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more