Struct cgmath::Point3
[−]
[src]
pub struct Point3<S> { pub x: S, pub y: S, pub z: S, }
A point in 3-dimensional space.
Fields
x | |
y | |
z |
pub struct Point3<S> { pub x: S, pub y: S, pub z: S, }
A point in 3-dimensional space.
x | |
y | |
z |
impl<S: BaseNum> Point3<S>
impl<S: BaseNum> Point3<S>
fn from_homogeneous(v: &Vector4<S>) -> Point3<S>
fn to_homogeneous(&self) -> Vector4<S>
impl<S> FixedArray<[S; 3]> for Point3<S>
fn into_fixed(self) -> [S; 3]
fn as_fixed<'a>(&'a self) -> &'a [S; 3]
fn as_mut_fixed<'a>(&'a mut self) -> &'a mut [S; 3]
fn from_fixed(_v: [S; 3]) -> Point3<S>
fn from_fixed_ref<'a>(v: &'a [S; 3]) -> &'a Point3<S>
fn from_fixed_mut<'a>(v: &'a mut [S; 3]) -> &'a mut Point3<S>
impl<S: BaseNum> Index<usize> for Point3<S>
impl<S: BaseNum> IndexMut<usize> for Point3<S>
impl<S: BaseNum> Array1<S> for Point3<S>
fn map<F>(&mut self, op: F) -> Point3<S> where F: FnMut(S) -> S
fn ptr<'a>(&'a self) -> &'a Element
fn mut_ptr<'a>(&'a mut self) -> &'a mut Element
fn swap_elems(&mut self, i: usize, j: usize)
fn replace_elem(&mut self, i: usize, src: Element) -> Element
impl<S: BaseNum> Point<S, Vector3<S>> for Point3<S>
fn origin() -> Point3<S>
fn from_vec(v: &Vector3<S>) -> Point3<S>
fn to_vec(&self) -> Vector3<S>
fn mul_s(&self, s: S) -> Point3<S>
fn div_s(&self, s: S) -> Point3<S>
fn rem_s(&self, s: S) -> Point3<S>
fn add_v(&self, v: &Vector3<S>) -> Point3<S>
fn sub_p(&self, p: &Point3<S>) -> Vector3<S>
fn mul_self_s(&mut self, s: S)
fn div_self_s(&mut self, s: S)
fn rem_self_s(&mut self, s: S)
fn add_self_v(&mut self, v: &Vector3<S>)
fn dot(&self, v: &Vector3<S>) -> S
fn min(&self, p: &Point3<S>) -> Point3<S>
fn max(&self, p: &Point3<S>) -> Point3<S>
impl<S: BaseFloat> ApproxEq<S> for Point3<S>
fn approx_eq_eps(&self, other: &Point3<S>, epsilon: &S) -> bool
fn approx_epsilon(_hack: Option<Self>) -> T
fn approx_eq(&self, other: &Self) -> bool
impl<S: BaseNum> Debug for Point3<S>
impl<S: BaseFloat + 'static> Bound<S> for Point3<S>
fn relate_plane(&self, plane: &Plane<S>) -> Relation
fn relate_clip_space(&self, projection: &Matrix4<S>) -> Relation
impl<S: Decodable> Decodable for Point3<S>
impl<S: Encodable> Encodable for Point3<S>
impl<S: Hash> Hash for Point3<S>
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
impl<S: Clone> Clone for Point3<S>
fn clone(&self) -> Point3<S>
fn clone_from(&mut self, source: &Self)
impl<S: Copy> Copy for Point3<S>
impl<S: Eq> Eq for Point3<S>
impl<S: PartialEq> PartialEq for Point3<S>