pub struct Point {
pub x: f64,
pub y: f64,
}
Expand description
Point, or Two Vector, depending on your perspective.
A plot is a Collection of Points
Returns new Point
x
- prim@f64 Independent Variable
y
- prim@f64 Dependent Variable
Returns a new Point from a slice
use calcify::Point;
let point: Point = Point::from(&[1.0,1.0]);
Returns a new Point with two random f64 from rand::Uniform between -1 and 1
max
- prim@f64: The absolute maximum value of each individule componant of the constituent Point
use calcify::Point;
let vec2 = Point::random(10.0);
Returns the length of the 2vector
use calcify::Point;
let vec2 = Point::new(1.0,0.0);
assert_eq!(vec2.r(),1.0);
The resulting type after applying the +
operator.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Return a tuple of Self and a &u8 of remaining unparsed bytes from a byte array
Formats the value using the given formatter. Read more
The resulting type after applying the *
operator.
Dot product
use calcify::Point;
let point = Point::new(2.0,2.0);
assert_eq!(
point*point,
8.0
);
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the -
operator.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Return object intensive json string Read more
Return Result wrapped Vec in MsgPack
Format is not like to_json it is array intensive not object Read more
The resulting type after applying the -
operator.
Method which takes an iterator and generates Self
from the elements by
“summing up” the items. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.