Skip to main content

IsTetrahedron

Trait IsTetrahedron 

Source
pub trait IsTetrahedron<'a, T: IsPoint, N: IsUnitVector>:
    GeometricPrimitive
    + HasVertices<'a, Vertex = T>
    + HasEdges
    + HasCentroid<Point = T>
    + HasMeasure
where <Self as HasEdges>::Edge: IsLine<'a, T>,
{
Show 17 methods // Required methods fn a_id(&self) -> PointId; fn set_a_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>; fn b_id(&self) -> PointId; fn set_b_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>; fn c_id(&self) -> PointId; fn set_c_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>; fn d_id(&self) -> PointId; fn set_d_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>; fn faces(&self) -> [Triangle3D; 4]; fn face_count(&self) -> usize; fn surface_area(&self) -> GeometryMeasure; fn signed_volume(&self) -> GeometryMeasure; fn volume(&self) -> GeometryMeasure; // Provided methods fn a(&self) -> Option<T> { ... } fn b(&self) -> Option<T> { ... } fn c(&self) -> Option<T> { ... } fn d(&self) -> Option<T> { ... }
}
Expand description

A tetrahedron primitive backed by four vertices and derived triangular faces.

Required Methods§

Source

fn a_id(&self) -> PointId

Returns the point-table id of the first vertex.

Source

fn set_a_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>

Sets the point-table id of the first vertex.

Source

fn b_id(&self) -> PointId

Returns the point-table id of the second vertex.

Source

fn set_b_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>

Sets the point-table id of the second vertex.

Source

fn c_id(&self) -> PointId

Returns the point-table id of the third vertex.

Source

fn set_c_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>

Sets the point-table id of the third vertex.

Source

fn d_id(&self) -> PointId

Returns the point-table id of the fourth vertex.

Source

fn set_d_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>

Sets the point-table id of the fourth vertex.

Source

fn faces(&self) -> [Triangle3D; 4]

Returns the four derived triangular faces of the tetrahedron.

Source

fn face_count(&self) -> usize

Returns the number of triangular faces.

Source

fn surface_area(&self) -> GeometryMeasure

Returns the total surface area of the tetrahedron.

Source

fn signed_volume(&self) -> GeometryMeasure

Returns the signed volume of the tetrahedron.

Source

fn volume(&self) -> GeometryMeasure

Returns the absolute tetrahedron volume.

Provided Methods§

Source

fn a(&self) -> Option<T>

Resolves and returns the first vertex from the point table.

Source

fn b(&self) -> Option<T>

Resolves and returns the second vertex from the point table.

Source

fn c(&self) -> Option<T>

Resolves and returns the third vertex from the point table.

Source

fn d(&self) -> Option<T>

Resolves and returns the fourth vertex from the point table.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§