toRegularTriangleOrNull

Creates a new instance of RegularTriangle from this regular polygon if the sideCount is equal to 3, otherwise returns null.