Struct dxf::Vector
[−]
[src]
pub struct Vector { pub x: f64, pub y: f64, pub z: f64, }
Represents a simple vector in Cartesian space.
Fields
x: f64
The X component of the vector.
y: f64
The Y component of the vector.
z: f64
The Z component of the vector.
Methods
impl Vector
[src]
fn new(x: f64, y: f64, z: f64) -> Vector
Creates a new Vector
with the specified values.
fn zero() -> Vector
Returns a new zero vector representing (0, 0, 0).
fn x_axis() -> Vector
Returns a new vector representing the X axis.
fn y_axis() -> Vector
Returns a new vector representing the Y axis.
fn z_axis() -> Vector
Returns a new vector representing the Z axis.
Trait Implementations
impl Clone for Vector
[src]
fn clone(&self) -> Vector
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more