Type Definition Point
conrod_core::position
type Point = [Scalar; 2];
General use 2D spatial point.
impl EnvelopePoint for Point
type X = Scalar
A value on the X-axis of the envelope.
type Y = Scalar
A value on the Y-axis of the envelope.
fn get_x(&self) -> Scalar
Return the X value.
fn get_y(&self) -> Scalar
Return the Y value.
fn set_x(&mut self, x: Scalar)
fn set_y(&mut self, y: Scalar)
fn new(x: Scalar, y: Scalar) -> Point
Create a new Envelope Point.
fn get_curve(&self) -> f32
Return the bezier curve depth (-1. to 1.) for the next interpolation.
fn set_curve(&mut self, _curve: f32)
Set the bezier curve depth (-1. to 1.) for the next interpolation.
impl Vertex for Point
fn point(&self) -> Point
The x y location of the vertex.
fn add(self, add: Point) -> Self
Add the given vector onto the position of self and return the result.