Struct direct2d::math::Vector2F
[−]
[src]
#[repr(C)]pub struct Vector2F(pub D2D_VECTOR_2F);
Methods
impl Vector2F
[src]
Trait Implementations
impl Debug for Vector2F
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for Vector2F
[src]
impl Clone for Vector2F
[src]
fn clone(&self) -> Vector2F
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deref for Vector2F
[src]
type Target = D2D_VECTOR_2F
The resulting type after dereferencing.
fn deref(&self) -> &D2D_VECTOR_2F
[src]
Dereferences the value.
impl DerefMut for Vector2F
[src]
fn deref_mut(&mut self) -> &mut D2D_VECTOR_2F
[src]
Mutably dereferences the value.
impl Add<Vector2F> for Point2F
[src]
type Output = Point2F
The resulting type after applying the +
operator.
fn add(self, rhs: Vector2F) -> Point2F
[src]
Performs the +
operation.
impl Sub<Vector2F> for Point2F
[src]
type Output = Point2F
The resulting type after applying the -
operator.
fn sub(self, rhs: Vector2F) -> Point2F
[src]
Performs the -
operation.
impl From<(f32, f32)> for Vector2F
[src]
impl Add for Vector2F
[src]
type Output = Vector2F
The resulting type after applying the +
operator.
fn add(self, rhs: Vector2F) -> Vector2F
[src]
Performs the +
operation.
impl Add<Point2F> for Vector2F
[src]
type Output = Point2F
The resulting type after applying the +
operator.
fn add(self, rhs: Point2F) -> Point2F
[src]
Performs the +
operation.
impl Neg for Vector2F
[src]
type Output = Vector2F
The resulting type after applying the -
operator.
fn neg(self) -> Vector2F
[src]
Performs the unary -
operation.
impl Mul<f32> for Vector2F
[src]
type Output = Vector2F
The resulting type after applying the *
operator.
fn mul(self, rhs: f32) -> Vector2F
[src]
Performs the *
operation.
impl Mul<Vector2F> for f32
[src]
type Output = Vector2F
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector2F) -> Vector2F
[src]
Performs the *
operation.
impl Div<f32> for Vector2F
[src]
type Output = Vector2F
The resulting type after applying the /
operator.
fn div(self, rhs: f32) -> Vector2F
[src]
Performs the /
operation.
impl Div<Vector2F> for f32
[src]
type Output = Vector2F
The resulting type after applying the /
operator.
fn div(self, rhs: Vector2F) -> Vector2F
[src]
Performs the /
operation.