Struct rusterize::types::Point
[−]
[src]
pub struct Point { pub x: Coord, pub y: Coord, pub z: Coord, }
Fields
x: Coord
y: Coord
z: Coord
Methods
impl Point
[src]
fn from_vec(v: Vec<Coord>) -> Point
fn from_array(arr: [f64; 4]) -> Point
fn to_array(self) -> [f64; 4]
fn dot(self, other: Point) -> f64
fn cross(self, other: Point) -> Point
fn magnitude(self) -> f64
fn normalized(self) -> Point
Trait Implementations
impl Copy for Point
[src]
impl Clone for Point
[src]
fn clone(&self) -> Point
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
impl Debug for Point
[src]
impl Mul<Coord> for Point
[src]
type Output = Point
The resulting type after applying the *
operator
fn mul(self, other: Coord) -> Point
The method for the *
operator
impl Add for Point
[src]
type Output = Point
The resulting type after applying the +
operator
fn add(self, other: Point) -> Point
The method for the +
operator
impl Sub for Point
[src]
type Output = Point
The resulting type after applying the -
operator
fn sub(self, other: Point) -> Point
The method for the -
operator