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

#include <Disc.hpp>

Public Types

using position_type = Vec3
 
using size_type = position_type::value_type
 
using value_type = position_type::value_type
 

Public Member Functions

SIV3D_NODISCARD_CXX20 Disc ()=default
 
constexpr SIV3D_NODISCARD_CXX20 Disc (double _r) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 Disc (double cx, double cy, double cz, double _r) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 Disc (const Vec3 &_center, double _r) noexcept
 
constexpr DiscsetPos (value_type cx, value_type cy, value_type cz) noexcept
 
constexpr DiscsetPos (position_type _center) noexcept
 
constexpr DiscsetR (size_type _r) noexcept
 
constexpr Disc movedBy (value_type _x, value_type _y, value_type _z) const noexcept
 
constexpr Disc movedBy (position_type v) const noexcept
 
constexpr DiscmoveBy (value_type _x, value_type _y, value_type _z) noexcept
 
constexpr DiscmoveBy (position_type v) noexcept
 
constexpr Disc stretched (value_type _r) const noexcept
 
constexpr Disc scaled (double s) const noexcept
 
constexpr bool hasArea () const noexcept
 
constexpr Disc lerp (const Disc &other, double f) const noexcept
 
const Discdraw (const ColorF &color=Palette::White) const
 
const Discdraw (const Texture &texture, const ColorF &color=Palette::White) const
 
const Discdraw (const Quaternion &rotation, const ColorF &color=Palette::White) const
 
const Discdraw (const Quaternion &rotation, const Texture &texture, const ColorF &color=Palette::White) const
 
const Discdraw (const Mat4x4 &mat, const ColorF &color=Palette::White) const
 
const Discdraw (const Mat4x4 &mat, const Texture &texture, const ColorF &color=Palette::White) const
 
const Discdraw (const PhongMaterial &material) const
 
const Discdraw (const Texture &texture, const PhongMaterial &material) const
 
const Discdraw (const Quaternion &rotation, const PhongMaterial &material) const
 
const Discdraw (const Quaternion &rotation, const Texture &texture, const PhongMaterial &material) const
 
const Discdraw (const Mat4x4 &mat, const PhongMaterial &material) const
 
const Discdraw (const Mat4x4 &mat, const Texture &texture, const PhongMaterial &material) const
 

Public Attributes

union {
   position_type   center
 
   struct {
      value_type   x
 
      value_type   y
 
      value_type   z
 
   } 
 
}; 
 
size_type r
 

Member Typedef Documentation

◆ position_type

◆ size_type

◆ value_type

Constructor & Destructor Documentation

◆ Disc() [1/4]

SIV3D_NODISCARD_CXX20 s3d::Disc::Disc ( )
default

◆ Disc() [2/4]

constexpr SIV3D_NODISCARD_CXX20 s3d::Disc::Disc ( double  _r)
explicitconstexprnoexcept

◆ Disc() [3/4]

constexpr SIV3D_NODISCARD_CXX20 s3d::Disc::Disc ( double  cx,
double  cy,
double  cz,
double  _r 
)
constexprnoexcept

◆ Disc() [4/4]

constexpr SIV3D_NODISCARD_CXX20 s3d::Disc::Disc ( const Vec3 _center,
double  _r 
)
constexprnoexcept

Member Function Documentation

◆ draw() [1/12]

const Disc& s3d::Disc::draw ( const ColorF color = Palette::White) const

◆ draw() [2/12]

const Disc& s3d::Disc::draw ( const Mat4x4 mat,
const ColorF color = Palette::White 
) const

◆ draw() [3/12]

const Disc& s3d::Disc::draw ( const Mat4x4 mat,
const PhongMaterial material 
) const

◆ draw() [4/12]

const Disc& s3d::Disc::draw ( const Mat4x4 mat,
const Texture texture,
const ColorF color = Palette::White 
) const

◆ draw() [5/12]

const Disc& s3d::Disc::draw ( const Mat4x4 mat,
const Texture texture,
const PhongMaterial material 
) const

◆ draw() [6/12]

const Disc& s3d::Disc::draw ( const PhongMaterial material) const

◆ draw() [7/12]

const Disc& s3d::Disc::draw ( const Quaternion rotation,
const ColorF color = Palette::White 
) const

◆ draw() [8/12]

const Disc& s3d::Disc::draw ( const Quaternion rotation,
const PhongMaterial material 
) const

◆ draw() [9/12]

const Disc& s3d::Disc::draw ( const Quaternion rotation,
const Texture texture,
const ColorF color = Palette::White 
) const

◆ draw() [10/12]

const Disc& s3d::Disc::draw ( const Quaternion rotation,
const Texture texture,
const PhongMaterial material 
) const

◆ draw() [11/12]

const Disc& s3d::Disc::draw ( const Texture texture,
const ColorF color = Palette::White 
) const

◆ draw() [12/12]

const Disc& s3d::Disc::draw ( const Texture texture,
const PhongMaterial material 
) const

◆ hasArea()

constexpr bool s3d::Disc::hasArea ( ) const
constexprnoexcept

◆ lerp()

constexpr Disc s3d::Disc::lerp ( const Disc other,
double  f 
) const
constexprnoexcept

◆ moveBy() [1/2]

constexpr Disc& s3d::Disc::moveBy ( position_type  v)
constexprnoexcept

◆ moveBy() [2/2]

constexpr Disc& s3d::Disc::moveBy ( value_type  _x,
value_type  _y,
value_type  _z 
)
constexprnoexcept

◆ movedBy() [1/2]

constexpr Disc s3d::Disc::movedBy ( position_type  v) const
constexprnoexcept

◆ movedBy() [2/2]

constexpr Disc s3d::Disc::movedBy ( value_type  _x,
value_type  _y,
value_type  _z 
) const
constexprnoexcept

◆ scaled()

constexpr Disc s3d::Disc::scaled ( double  s) const
constexprnoexcept

◆ setPos() [1/2]

constexpr Disc& s3d::Disc::setPos ( position_type  _center)
constexprnoexcept

◆ setPos() [2/2]

constexpr Disc& s3d::Disc::setPos ( value_type  cx,
value_type  cy,
value_type  cz 
)
constexprnoexcept

◆ setR()

constexpr Disc& s3d::Disc::setR ( size_type  _r)
constexprnoexcept

◆ stretched()

constexpr Disc s3d::Disc::stretched ( value_type  _r) const
constexprnoexcept

Member Data Documentation

◆ @21

union { ... }

◆ center

position_type s3d::Disc::center

◆ r

size_type s3d::Disc::r

◆ x

value_type s3d::Disc::x

◆ y

value_type s3d::Disc::y

◆ z

value_type s3d::Disc::z

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