Struct statics::Vector [] [src]

pub struct Vector { /* fields omitted */ }

Type that implements a vector for force calculations.

Internally, it's represented as a magnitude and angle. You can consider it as a right triangle similar to the below:

This example is not tested
         /|
        / |
       /  |
      /___|

The Vector also provides the ability to get the component forces (vertical and horizontal) which is useful for calculating composite forces.

Methods

impl Vector
[src]

[src]

A vector of magnitude 1, with angle 0deg

[src]

Factor based on a magnitude and angle

[src]

[src]

[src]

The vertical component of the Vector

[src]

The horizontal component of the Vector

Trait Implementations

Auto Trait Implementations

impl Send for Vector

impl Sync for Vector