lv_3dmath.h

API reference for lv_3dmath.h

Report on GitHub

Functions

lv_get_ground_plane

Get a plane that faces upward, centered at a given height

 
lv_3dplane_t lv_get_ground_plane(float elevation)
Parameters
NameTypeDescription
elevationfloatelevation of the ground plane, in world units. this is usually zero

Returns: lv_3dplane_t — ground plane

Structs

struct

lv_3dpoint_t

MemberTypeDescription
xfloat
yfloat
zfloat
Used by 6 functions
  • lv_gltf_model_node_get_local_position — param result
  • lv_gltf_model_node_get_world_position — param result
  • lv_gltf_model_node_get_scale — param result
  • lv_gltf_model_node_get_euler_rotation — param result
  • lv_intersect_ray_with_plane — param collision_point
  • lv_gltf_world_to_screen — param world_pos
struct

lv_quaternion_t

MemberTypeDescription
xfloat
yfloat
zfloat
wfloat
struct

lv_3dplane_t

MemberTypeDescription
originlv_3dpoint_t
directionlv_3dpoint_t
Used by 1 function
  • lv_intersect_ray_with_plane — param plane

Typedefs

lv_3dray_t

 
typedef lv_3dplane_t lv_3dray_t
Used by 1 function
  • lv_intersect_ray_with_plane — param ray

Dependencies

Indirect dependencies

How is this guide?

Last updated on

On this page