[−][src]Struct hexasphere::IcoSphereBase
Implements an icosahedron as the base shape.
- 12 vertices
- 20 faces
- 30 edges
This shape has the best results for a sphere.
The resulting smaller triangles are close to being equilateral, so if one draws lines from the center of the each triangle to the middle of the each edge then the result will be 12 pentagons and many hexagons.
Trait Implementations
impl BaseShape for IcoSphereBase
[src]
fn initial_points(&self) -> &'static [Vec3A]
[src]
fn triangles(&self) -> &'static [Triangle]
[src]
const EDGES: usize
[src]
fn interpolate(&self, a: Vec3A, b: Vec3A, p: f32) -> Vec3A
[src]
fn interpolate_half(&self, a: Vec3A, b: Vec3A) -> Vec3A
[src]
fn interpolate_multiple(
&self,
a: Vec3A,
b: Vec3A,
indices: &[u32],
points: &mut [Vec3A]
)
[src]
&self,
a: Vec3A,
b: Vec3A,
indices: &[u32],
points: &mut [Vec3A]
)
impl Clone for IcoSphereBase
[src]
fn clone(&self) -> IcoSphereBase
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for IcoSphereBase
[src]
impl Debug for IcoSphereBase
[src]
impl Default for IcoSphereBase
[src]
fn default() -> IcoSphereBase
[src]
impl EquilateralBaseShape for IcoSphereBase
[src]
fn triangle_normals() -> &'static [Vec3A]
[src]
fn triangle_min_dot() -> f32
[src]
Auto Trait Implementations
impl RefUnwindSafe for IcoSphereBase
impl Send for IcoSphereBase
impl Sync for IcoSphereBase
impl Unpin for IcoSphereBase
impl UnwindSafe for IcoSphereBase
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,