jaulib v1.3.0
Jau Support Library (C++, Java, ..)
Public Member Functions | Public Attributes | List of all members
jau::math::geom::LineSeg3f Struct Reference

#include <geom3f.hpp>

Collaboration diagram for jau::math::geom::LineSeg3f:

Public Member Functions

bool intersects (const AABBox3f &box) const noexcept
 
bool intersects (const LineSeg3f &o)
 Compute intersection between two lines segments. More...
 
bool intersects (Point3f &result, const LineSeg3f &o)
 Compute intersection between two lines segments. More...
 
constexpr LineSeg3foperator*= (const float s) noexcept
 Scale this line segment with given scale factor. More...
 
std::string toString () const noexcept
 

Public Attributes

Point3f p0
 
Point3f p1
 
Point3f p2
 

Detailed Description

Definition at line 37 of file geom3f.hpp.

Member Function Documentation

◆ operator*=()

constexpr LineSeg3f & jau::math::geom::LineSeg3f::operator*= ( const float  s)
inlineconstexprnoexcept

Scale this line segment with given scale factor.

Parameters
sscale factor
Returns
this instance

Definition at line 47 of file geom3f.hpp.

◆ toString()

std::string jau::math::geom::LineSeg3f::toString ( ) const
inlinenoexcept

Definition at line 53 of file geom3f.hpp.

◆ intersects() [1/3]

bool jau::math::geom::LineSeg3f::intersects ( Point3f result,
const LineSeg3f o 
)
inline

Compute intersection between two lines segments.

Parameters
resultstorage for the intersection coordinates if the lines intersect, otherwise unchanged
avertex 1 of first line
bvertex 2 of first line
cvertex 1 of second line
dvertex 2 of second line
Returns
true if the line segments intersect, otherwise false

Definition at line 64 of file geom3f.hpp.

◆ intersects() [2/3]

bool jau::math::geom::LineSeg3f::intersects ( const LineSeg3f o)
inline

Compute intersection between two lines segments.

Parameters
avertex 1 of first line
bvertex 2 of first line
cvertex 1 of second line
dvertex 2 of second line
Returns
true if the line segments intersect, otherwise false

Definition at line 92 of file geom3f.hpp.

◆ intersects() [3/3]

bool jau::math::geom::LineSeg3f::intersects ( const AABBox3f box) const
inlinenoexcept

Definition at line 109 of file geom3f.hpp.

Member Data Documentation

◆ p0

Point3f jau::math::geom::LineSeg3f::p0

Definition at line 38 of file geom3f.hpp.

◆ p1

Point3f jau::math::geom::LineSeg3f::p1

Definition at line 39 of file geom3f.hpp.

◆ p2

Point3f jau::math::geom::LineSeg3f::p2

Definition at line 40 of file geom3f.hpp.


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