OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::Triangle3D Struct Reference

#include <Triangle3D.hpp>

Public Member Functions

SIV3D_NODISCARD_CXX20 Triangle3D ()=default
 
SIV3D_NODISCARD_CXX20 Triangle3D (SIMD_Float4 _p0, SIMD_Float4 _p1, SIMD_Float4 _p2) noexcept
 
SIV3D_NODISCARD_CXX20 Triangle3D (const Float3 &_p0, const Float3 &_p1, const Float3 &_p2) noexcept
 
Triangle3D &SIV3D_VECTOR_CALL set (float x0, float y0, float z0, float x1, float y1, float z1, float x2, float y2, float zy2) noexcept
 
Triangle3D &SIV3D_VECTOR_CALL set (const Float3 &_p0, const Float3 &_p1, const Float3 &_p2) noexcept
 
Triangle3D &SIV3D_VECTOR_CALL set (SIMD_Float4 _p0, SIMD_Float4 _p1, SIMD_Float4 _p2) noexcept
 
Triangle3D &SIV3D_VECTOR_CALL set (const Triangle3D &triangle) noexcept
 
Triangle3D SIV3D_VECTOR_CALL movedBy (float x, float y, float z) const noexcept
 
Triangle3D SIV3D_VECTOR_CALL movedBy (Float3 v) const noexcept
 
Triangle3D &SIV3D_VECTOR_CALL moveBy (float x, float y, float z) noexcept
 
Triangle3D &SIV3D_VECTOR_CALL moveBy (Float3 v) noexcept
 
Triangle3D SIV3D_VECTOR_CALL lerp (const Triangle3D &other, double f) const noexcept
 

Public Attributes

SIMD_Float4 p0
 
SIMD_Float4 p1
 
SIMD_Float4 p2
 

Friends

bool SIV3D_VECTOR_CALL operator== (const Triangle3D &lhs, const Triangle3D &rhs) noexcept
 
bool SIV3D_VECTOR_CALL operator!= (const Triangle3D &lhs, const Triangle3D &rhs) noexcept
 
template<class CharType >
std::basic_ostream< CharType > & operator<< (std::basic_ostream< CharType > &output, const Triangle3D &value)
 
template<class CharType >
std::basic_istream< CharType > & operator>> (std::basic_istream< CharType > &input, Triangle3D &value)
 
void Formatter (FormatData &formatData, const Triangle3D &value)
 

Constructor & Destructor Documentation

◆ Triangle3D() [1/3]

SIV3D_NODISCARD_CXX20 s3d::Triangle3D::Triangle3D ( )
default

◆ Triangle3D() [2/3]

SIV3D_NODISCARD_CXX20 s3d::Triangle3D::Triangle3D ( SIMD_Float4  _p0,
SIMD_Float4  _p1,
SIMD_Float4  _p2 
)
noexcept

◆ Triangle3D() [3/3]

SIV3D_NODISCARD_CXX20 s3d::Triangle3D::Triangle3D ( const Float3 _p0,
const Float3 _p1,
const Float3 _p2 
)
noexcept

Member Function Documentation

◆ lerp()

Triangle3D SIV3D_VECTOR_CALL s3d::Triangle3D::lerp ( const Triangle3D other,
double  f 
) const
noexcept

◆ moveBy() [1/2]

Triangle3D& SIV3D_VECTOR_CALL s3d::Triangle3D::moveBy ( float  x,
float  y,
float  z 
)
noexcept

◆ moveBy() [2/2]

Triangle3D& SIV3D_VECTOR_CALL s3d::Triangle3D::moveBy ( Float3  v)
noexcept

◆ movedBy() [1/2]

Triangle3D SIV3D_VECTOR_CALL s3d::Triangle3D::movedBy ( float  x,
float  y,
float  z 
) const
noexcept

◆ movedBy() [2/2]

Triangle3D SIV3D_VECTOR_CALL s3d::Triangle3D::movedBy ( Float3  v) const
noexcept

◆ set() [1/4]

Triangle3D& SIV3D_VECTOR_CALL s3d::Triangle3D::set ( const Float3 _p0,
const Float3 _p1,
const Float3 _p2 
)
noexcept

◆ set() [2/4]

Triangle3D& SIV3D_VECTOR_CALL s3d::Triangle3D::set ( const Triangle3D triangle)
noexcept

◆ set() [3/4]

Triangle3D& SIV3D_VECTOR_CALL s3d::Triangle3D::set ( float  x0,
float  y0,
float  z0,
float  x1,
float  y1,
float  z1,
float  x2,
float  y2,
float  zy2 
)
noexcept

◆ set() [4/4]

Triangle3D& SIV3D_VECTOR_CALL s3d::Triangle3D::set ( SIMD_Float4  _p0,
SIMD_Float4  _p1,
SIMD_Float4  _p2 
)
noexcept

Friends And Related Function Documentation

◆ Formatter

void Formatter ( FormatData formatData,
const Triangle3D value 
)
friend

◆ operator!=

bool SIV3D_VECTOR_CALL operator!= ( const Triangle3D lhs,
const Triangle3D rhs 
)
friend

◆ operator<<

template<class CharType >
std::basic_ostream<CharType>& operator<< ( std::basic_ostream< CharType > &  output,
const Triangle3D value 
)
friend

◆ operator==

bool SIV3D_VECTOR_CALL operator== ( const Triangle3D lhs,
const Triangle3D rhs 
)
friend

◆ operator>>

template<class CharType >
std::basic_istream<CharType>& operator>> ( std::basic_istream< CharType > &  input,
Triangle3D value 
)
friend

Member Data Documentation

◆ p0

SIMD_Float4 s3d::Triangle3D::p0

◆ p1

SIMD_Float4 s3d::Triangle3D::p1

◆ p2

SIMD_Float4 s3d::Triangle3D::p2

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