pub trait IsTetrahedron<'a, T: IsPoint, N: IsUnitVector>:
GeometricPrimitive
+ HasVertices<'a, Vertex = T>
+ HasEdges
+ HasCentroid<Point = T>
+ HasMeasure{
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§
Sourcefn set_a_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>
fn set_a_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>
Sets the point-table id of the first vertex.
Sourcefn set_b_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>
fn set_b_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>
Sets the point-table id of the second vertex.
Sourcefn set_c_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>
fn set_c_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>
Sets the point-table id of the third vertex.
Sourcefn set_d_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>
fn set_d_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>
Sets the point-table id of the fourth vertex.
Sourcefn faces(&self) -> [Triangle3D; 4]
fn faces(&self) -> [Triangle3D; 4]
Returns the four derived triangular faces of the tetrahedron.
Sourcefn face_count(&self) -> usize
fn face_count(&self) -> usize
Returns the number of triangular faces.
Sourcefn surface_area(&self) -> GeometryMeasure
fn surface_area(&self) -> GeometryMeasure
Returns the total surface area of the tetrahedron.
Sourcefn signed_volume(&self) -> GeometryMeasure
fn signed_volume(&self) -> GeometryMeasure
Returns the signed volume of the tetrahedron.
Sourcefn volume(&self) -> GeometryMeasure
fn volume(&self) -> GeometryMeasure
Returns the absolute tetrahedron volume.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".