Struct dxf::Vector [] [src]

pub struct Vector {
    pub x: f64,
    pub y: f64,
    pub z: f64,
}

Represents a simple vector in Cartesian space.

Fields

The X component of the vector.

The Y component of the vector.

The Z component of the vector.

Methods

impl Vector
[src]

[src]

Creates a new Vector with the specified values.

[src]

Returns a new zero vector representing (0, 0, 0).

[src]

Returns a new vector representing the X axis.

[src]

Returns a new vector representing the Y axis.

[src]

Returns a new vector representing the Z axis.

Trait Implementations

impl Clone for Vector
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Vector
[src]

[src]

Formats the value using the given formatter.

impl Default for Vector
[src]

[src]

Returns the "default value" for a type. Read more

impl PartialEq for Vector
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.