Geometries can be ill-defined for several reasons, e.g. circles with a radius of zero, segments that start and end at the same location, etc. See details for a list of conditions that are considered degenerate.

## Usage

is_degenerate(x)

## Arguments

x

A geometry vector

A logical vector

## Details

The following conditions are considered to produce degenerate geometries:

• A circle having a radius of zero

• An iso-rectangle with zero width or zero height

• An iso-cuboid with zero width, zero height, or zero depth

• A 2D line with the coefficients being zero

• A 3D line that is degenerated to a point

• A plane with the coefficients being zero

• A ray with the source and the second defining point being equal

• A segment with the source and target being equal

• A sphere with a radius of zero

• A tetrahedron with all vertices being co-planar

• A triangle with collinear vertices

Other Predicates: collinear(), constant_in, geometry_class, geometry_turns, has_intersection(), in_order(), location_predicates, parallel()

## Examples

# A line without direction
l <- line(point(0, 5), vec(0, 0))
is_degenerate(l)
#>  TRUE
{"ft_lang_label":"__label__en","ft_lang_prob":0.8265807,"math_prob":0.9420938,"size":1014,"snap":"2022-40-2023-06","text_gpt3_token_len":232,"char_repetition_ratio":0.13861386,"word_repetition_ratio":0.026666667,"special_character_ratio":0.19428007,"punctuation_ratio":0.114754096,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9963046,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-03T11:09:08Z\",\"WARC-Record-ID\":\"<urn:uuid:6331ef11-5739-45b4-9878-f8c740fd59f5>\",\"Content-Length\":\"13264\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:4a19c242-2656-477c-9a93-2b44d1093a5b>\",\"WARC-Concurrent-To\":\"<urn:uuid:73c30c71-aeb9-42a2-95ac-292ce2436cd1>\",\"WARC-IP-Address\":\"185.199.111.153\",\"WARC-Target-URI\":\"https://r-euclid.com/reference/is_degenerate.html\",\"WARC-Payload-Digest\":\"sha1:XGCVTKQMNEPGANZ6SZR4MEKSVRCYBAIC\",\"WARC-Block-Digest\":\"sha1:H7QBYFM7MKWIPOLMUMAXXPVWQODZALTP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764500044.66_warc_CC-MAIN-20230203091020-20230203121020-00015.warc.gz\"}"}