pub enum SdfKind {
Sphere,
Box,
Capsule,
Plane,
}Expand description
Die Primitive-Arten des Kerns; die Nummern sind Speichervertrag mit
sdf.wgsl (0 Kugel, 1 Quader, 2 Kapsel, 3 Ebene).
Variants§
Sphere
Mittelpunkt pos, Radius radius.
Box
Mittelpunkt pos, halbe Ausdehnung ext (achsparallel).
Capsule
Endpunkte pos und ext, Radius radius.
Plane
Oberflächenpunkt pos, nach außen weisende Einheitsnormale ext
(der Halbraum hinter der Ebene ist fest).
Implementations§
Trait Implementations§
impl Copy for SdfKind
impl Eq for SdfKind
impl StructuralPartialEq for SdfKind
Auto Trait Implementations§
impl Freeze for SdfKind
impl RefUnwindSafe for SdfKind
impl Send for SdfKind
impl Sync for SdfKind
impl Unpin for SdfKind
impl UnsafeUnpin for SdfKind
impl UnwindSafe for SdfKind
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