Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | Public Attributes | List of all members
jau::math::Ray2F< T, > Class Template Reference

Simple compound denoting a ray. More...

#include <vec2f.hpp>

Collaboration diagram for jau::math::Ray2F< T, >:

Public Member Functions

std::string toString () const noexcept
 

Public Attributes

Vector2F< T > dir
 Normalized direction vector of ray. More...
 
Point2F< T > orig
 Origin of Ray. More...
 

Detailed Description

template<typename T, std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
class jau::math::Ray2F< T, >

Simple compound denoting a ray.

A ray, also known as a half line, consists out of it's origin and direction. Hence it is bound to only the origin side, where the other end is +infinitive.

R(t) = R0 + Rd * t with R0 origin, Rd direction and t > 0.0

Definition at line 384 of file vec2f.hpp.

Member Function Documentation

◆ toString()

template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
std::string jau::math::Ray2F< T, >::toString ( ) const
inlinenoexcept

Definition at line 392 of file vec2f.hpp.

Member Data Documentation

◆ orig

template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
Point2F<T> jau::math::Ray2F< T, >::orig

Origin of Ray.

Definition at line 387 of file vec2f.hpp.

◆ dir

template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
Vector2F<T> jau::math::Ray2F< T, >::dir

Normalized direction vector of ray.

Definition at line 390 of file vec2f.hpp.


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