# LPoint3f

class LPoint3f

Bases: `LVecBase3f`

This is a three-component point in space (as opposed to a three-component vector, which represents a direction and a distance). Some of the methods are slightly different between `LPoint3` and `LVector3`; in particular, subtraction of two points yields a vector, while addition of a vector and a point yields a point.

Inheritance diagram

LPoint3f(void) = default
LPoint3f(LVecBase3f const &copy)
LPoint3f(float fill_value)
LPoint3f(float x, float y, float z)
LPoint3f(LVecBase2f const &copy, float z)
LPoint3f(LPoint3f const&) = default
LPoint3f cross(LVecBase3f const &other) const
static TypeHandle get_class_type(void)
LPoint2f get_xy(void) const

Returns a 2-component vector that shares just the first two components of this vector.

LPoint2f get_xz(void) const

Returns a 2-component vector that shares just the first and last components of this vector.

LPoint2f get_yz(void) const

Returns a 2-component vector that shares just the last two components of this vector.

LPoint3f normalized(void) const

Normalizes the vector and returns the normalized vector as a copy. If the vector was a zero-length vector, a zero length vector will be returned.

LPoint3f const &origin(CoordinateSystem cs = ::CS_default)

Returns the origin of the indicated coordinate system. This is always 0, 0, 0 with all of our existing coordinate systems; it’s hard to imagine it ever being different.

LPoint3f project(LVecBase3f const &onto) const

Returns a new vector representing the projection of this vector onto another one. The resulting vector will be a scalar multiple of onto.

LPoint3f rfu(float right, float fwd, float up, CoordinateSystem cs = ::CS_default)

Returns a point described by right, forward, up displacements from the origin, wherever that maps to in the given coordinate system.

LPoint3f const &unit_x(void)

Returns a unit X point.

LPoint3f const &unit_y(void)

Returns a unit Y point.

LPoint3f const &unit_z(void)

Returns a unit Z point.

LPoint3f const &zero(void)

Returns a zero-length point.
{"ft_lang_label":"__label__en","ft_lang_prob":0.80140066,"math_prob":0.9877951,"size":1827,"snap":"2023-40-2023-50","text_gpt3_token_len":463,"char_repetition_ratio":0.17937465,"word_repetition_ratio":0.08759124,"special_character_ratio":0.22550629,"punctuation_ratio":0.10897436,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9834462,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-08T19:51:32Z\",\"WARC-Record-ID\":\"<urn:uuid:546d2025-c266-4746-8fb4-3fa4fc72a94a>\",\"Content-Length\":\"310641\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b3e338d6-5022-4833-a2f0-7b1edda45cd5>\",\"WARC-Concurrent-To\":\"<urn:uuid:1a6a05ce-7913-482d-b68c-fec5e2d7071a>\",\"WARC-IP-Address\":\"128.2.236.121\",\"WARC-Target-URI\":\"https://docs.panda3d.org/1.10/cpp/reference/panda3d.core.LPoint3f\",\"WARC-Payload-Digest\":\"sha1:DRLPXO7QMYM245IQDRQT2ZY73GEXKXPQ\",\"WARC-Block-Digest\":\"sha1:EVZN6GDF5FDM7ZSRF3I6VCD32D7UX2JF\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100769.54_warc_CC-MAIN-20231208180539-20231208210539-00877.warc.gz\"}"}