pub trait CustomShapePoints {
// Required methods
fn point_count(&self) -> usize;
fn point(&self, point: usize) -> Vector2f;
}Expand description
The points of a custom shape.
Required Methods§
Sourcefn point_count(&self) -> usize
fn point_count(&self) -> usize
Gets the total count of points.
Return the points count
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".