pub struct Point3D {
pub radius: f32,
pub center: Point3DCenter,
pub identifier: MraphicsID,
pub geometry: Sphere,
pub material: BasicMaterial,
}Fields§
§radius: f32§center: Point3DCenter§identifier: MraphicsID§geometry: Sphere§material: BasicMaterialImplementations§
Trait Implementations§
Source§impl InstanceUpdater for Point3D
impl InstanceUpdater for Point3D
fn update_instance(&self, instance: &mut RenderInstance)
Source§impl MeshLike for Point3D
impl MeshLike for Point3D
Source§fn build_instance(&self) -> RenderInstance
fn build_instance(&self) -> RenderInstance
Builds a
RenderInstance using this mesh’s data.Source§fn identifier(&self) -> MraphicsID
fn identifier(&self) -> MraphicsID
Returns the unique identifier of this mesh.
Source§impl Representable for Point3D
impl Representable for Point3D
type Intermediate = Point3DCenter
fn as_intermediate(&self) -> Self::Intermediate
fn update_from_intermediate(&mut self, repr: &Self::Intermediate)
Source§impl Transformable for Point3D
impl Transformable for Point3D
Source§fn apply_transform<Trans: Fn(&[f32; 3]) -> [f32; 3]>(
&self,
transform: Trans,
) -> Self::Intermediate
fn apply_transform<Trans: Fn(&[f32; 3]) -> [f32; 3]>( &self, transform: Trans, ) -> Self::Intermediate
Applies a transform function to self, and returns a intermediate representation. Read more
Auto Trait Implementations§
impl Freeze for Point3D
impl RefUnwindSafe for Point3D
impl Send for Point3D
impl Sync for Point3D
impl Unpin for Point3D
impl UnsafeUnpin for Point3D
impl UnwindSafe for Point3D
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<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.