#[repr(C, align(16))]pub struct PointXYZRGB {
pub x: f32,
pub y: f32,
pub z: f32,
pub rgb: RGB,
}Expand description
3D point with x, y, z coordinates and an RGB color value, commonly used in ROS with PCL.
Fields§
§x: f32§y: f32§z: f32§rgb: RGBImplementations§
Source§impl PointXYZRGB
impl PointXYZRGB
pub fn new(x: f32, y: f32, z: f32, r: u8, g: u8, b: u8) -> Self
pub fn r(&self) -> u8
pub fn g(&self) -> u8
pub fn b(&self) -> u8
Sourcepub fn xyz(&self) -> Point3<f32>
Available on crate feature nalgebra only.
pub fn xyz(&self) -> Point3<f32>
nalgebra only.Get the coordinates as a nalgebra Point3.
pub fn xyz_f32(&self) -> Point3<f32>
👎Deprecated since 0.6.0: please use
xyz() insteadAvailable on crate feature
nalgebra only.pub fn xyz_f64(&self) -> Point3<f64>
👎Deprecated since 0.6.0: please use
xyz().cast::<f64>() insteadAvailable on crate feature
nalgebra only.Trait Implementations§
Source§impl Clone for PointXYZRGB
impl Clone for PointXYZRGB
Source§fn clone(&self) -> PointXYZRGB
fn clone(&self) -> PointXYZRGB
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PointXYZRGB
impl Debug for PointXYZRGB
Source§impl Default for PointXYZRGB
impl Default for PointXYZRGB
Source§fn default() -> PointXYZRGB
fn default() -> PointXYZRGB
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PointXYZRGB
impl<'de> Deserialize<'de> for PointXYZRGB
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<IPoint<4>> for PointXYZRGB
impl From<IPoint<4>> for PointXYZRGB
Source§impl From<PointXYZRGB> for IPoint<4>
impl From<PointXYZRGB> for IPoint<4>
Source§fn from(point: PointXYZRGB) -> Self
fn from(point: PointXYZRGB) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PointXYZRGB
impl PartialEq for PointXYZRGB
Source§impl PointConvertible<4> for PointXYZRGB
impl PointConvertible<4> for PointXYZRGB
fn layout() -> LayoutDescription
Source§impl Serialize for PointXYZRGB
impl Serialize for PointXYZRGB
impl Copy for PointXYZRGB
impl Send for PointXYZRGB
impl StructuralPartialEq for PointXYZRGB
impl Sync for PointXYZRGB
Auto Trait Implementations§
impl Freeze for PointXYZRGB
impl RefUnwindSafe for PointXYZRGB
impl Unpin for PointXYZRGB
impl UnwindSafe for PointXYZRGB
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.