Struct physx::height_field::HeightFieldSample
source · pub struct HeightFieldSample { /* private fields */ }
Implementations§
source§impl HeightFieldSample
impl HeightFieldSample
pub fn new( height: i16, material0: HeightFieldMaterial, material1: HeightFieldMaterial, tess_flag: bool ) -> Self
pub fn height(&self) -> i16
pub fn set_height(&mut self, height: i16)
pub fn tess_flag(&self) -> bool
pub fn set_tess_flag(&mut self)
pub fn clear_tess_flag(&mut self)
pub fn material0(&self) -> HeightFieldMaterial
pub fn material1(&self) -> HeightFieldMaterial
pub fn set_material0(&mut self, material: HeightFieldMaterial)
pub fn set_material1(&mut self, material: HeightFieldMaterial)
Trait Implementations§
source§impl Class<PxHeightFieldSample> for HeightFieldSample
impl Class<PxHeightFieldSample> for HeightFieldSample
source§fn as_ptr(&self) -> *const PxHeightFieldSample
fn as_ptr(&self) -> *const PxHeightFieldSample
Returns a raw const pointer to the wrapped type.
Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe.
In particular: this pointer should not be used to construct a second owning wrapper around the pointer.
source§fn as_mut_ptr(&mut self) -> *mut PxHeightFieldSample
fn as_mut_ptr(&mut self) -> *mut PxHeightFieldSample
Returns a raw mut pointer to the wrapped type.
Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe.
In particular: this pointer should not be used to construct a second owning wrapper around the pointer.
source§impl Clone for HeightFieldSample
impl Clone for HeightFieldSample
source§fn clone(&self) -> HeightFieldSample
fn clone(&self) -> HeightFieldSample
Returns a copy 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 From<HeightFieldSample> for PxHeightFieldSample
impl From<HeightFieldSample> for PxHeightFieldSample
source§fn from(value: HeightFieldSample) -> Self
fn from(value: HeightFieldSample) -> Self
Converts to this type from the input type.
source§impl From<PxHeightFieldSample> for HeightFieldSample
impl From<PxHeightFieldSample> for HeightFieldSample
source§fn from(value: PxHeightFieldSample) -> Self
fn from(value: PxHeightFieldSample) -> Self
Converts to this type from the input type.
impl Copy for HeightFieldSample
Auto Trait Implementations§
impl RefUnwindSafe for HeightFieldSample
impl Send for HeightFieldSample
impl Sync for HeightFieldSample
impl Unpin for HeightFieldSample
impl UnwindSafe for HeightFieldSample
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