Kanzi  3.9.6
Kanzi Engine API
kanzi::TouchPoint Struct Reference

The structure describes the attributes for a touch point or mouse hit. More...

#include <kanzi/core.ui/input/input_manipulator.hpp>

Public Member Functions

 TouchPoint ()=default
 Constructor. More...
 

Public Attributes

float distance
 Hit test distance. More...
 
unsigned int id
 Touch identifier. More...
 
NodeWeakPtr objectNode
 Hit test object node. More...
 
Vector2 point
 The touch point x and y coordinates. More...
 
Ray ray
 Hit test ray in 3D space. More...
 
TouchPointState state
 Touch state. More...
 

Detailed Description

The structure describes the attributes for a touch point or mouse hit.

The description includes the information about the identifier, state, coordinates, ray, and distance. Ray and distance fields are only applicable for 3D spaces.

See also
InputManipulator

Constructor & Destructor Documentation

◆ TouchPoint()

kanzi::TouchPoint::TouchPoint ( )
explicitdefault

Constructor.

Member Data Documentation

◆ ray

Ray kanzi::TouchPoint::ray

Hit test ray in 3D space.

◆ objectNode

NodeWeakPtr kanzi::TouchPoint::objectNode

Hit test object node.

◆ point

Vector2 kanzi::TouchPoint::point

The touch point x and y coordinates.

◆ distance

float kanzi::TouchPoint::distance

Hit test distance.

This is the distance between the camera and the bounding box of the hit test node.

◆ id

unsigned int kanzi::TouchPoint::id

Touch identifier.

◆ state

TouchPointState kanzi::TouchPoint::state

Touch state.


The documentation for this struct was generated from the following file: