Skip to content

class Point<T> demo

template <typename T>
struct Point { … }

A 3D point structure.

This templated struct represents a point in 3D space with coordinates x, y, and z.

Template parameters
T The type of the coordinates (e.g., int, float, double).
Point

variable x

T x

Defined at library.hpp:126

variable y

T x, y

Defined at library.hpp:126

variable z

T x, y, z

Defined at library.hpp:126

Defined at library.hpp:124