Web Analytics Made Easy - Statcounter
Skip to content

Class SBDTypeRay#

ClassList > SBDTypeRay

More...

  • #include <SBDTypeRay.hpp>

Public Functions#

Type Name
SBDTypeRay ()
SBDTypeRay (const SBPosition3 & origin, const SBVector3 & direction)
SB_DECLARE_DATA (SBDTypeRay)
const SBVector3 & getDirection () const
const SBPosition3 & getOrigin () const
bool intersectionAABB (const SBIAPosition3 & aabb) const
bool intersectionAABB (const SBIAPosition3 & aabb, SBQuantity::length & distance) const
bool intersectionSphere (const SBPosition3 & center, const SBQuantity::length & radius) const
bool intersectionSphere (const SBPosition3 & center, const SBQuantity::length & radius, SBPosition3 & intersection) const
bool isSerializable () const
Returns true.
void serialize (SBCSerializer * serializer, const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER) const
Serializes the ray.
void setDirection (const SBVector3 & direction)
void setOrigin (const SBPosition3 & origin)
void unserialize (SBCSerializer * serializer, const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER)
Unserializes the ray.
virtual ~SBDTypeRay ()

Protected Attributes#

Type Name
SBDTypeRayData * dataPointer

Detailed Description#

This class implements a ray.

Short name: SBRay

Public Functions Documentation#

function SBDTypeRay [1/2]#

SBDTypeRay::SBDTypeRay () 

function SBDTypeRay [2/2]#

SBDTypeRay::SBDTypeRay (
    const SBPosition3 & origin,
    const SBVector3 & direction
) 

function SB_DECLARE_DATA#

SBDTypeRay::SB_DECLARE_DATA (
    SBDTypeRay
) 

function getDirection#

const SBVector3 & SBDTypeRay::getDirection () const

function getOrigin#

const SBPosition3 & SBDTypeRay::getOrigin () const

function intersectionAABB [1/2]#

bool SBDTypeRay::intersectionAABB (
    const SBIAPosition3 & aabb
) const

function intersectionAABB [2/2]#

bool SBDTypeRay::intersectionAABB (
    const SBIAPosition3 & aabb,
    SBQuantity::length & distance
) const

function intersectionSphere [1/2]#

bool SBDTypeRay::intersectionSphere (
    const SBPosition3 & center,
    const SBQuantity::length & radius
) const

function intersectionSphere [2/2]#

bool SBDTypeRay::intersectionSphere (
    const SBPosition3 & center,
    const SBQuantity::length & radius,
    SBPosition3 & intersection
) const

function isSerializable#

Returns true.

bool SBDTypeRay::isSerializable () const


function serialize#

Serializes the ray.

void SBDTypeRay::serialize (
    SBCSerializer * serializer,
    const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER
) const


function setDirection#

void SBDTypeRay::setDirection (
    const SBVector3 & direction
) 

function setOrigin#

void SBDTypeRay::setOrigin (
    const SBPosition3 & origin
) 

function unserialize#

Unserializes the ray.

void SBDTypeRay::unserialize (
    SBCSerializer * serializer,
    const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER
) 


function ~SBDTypeRay#

virtual SBDTypeRay::~SBDTypeRay () 

Protected Attributes Documentation#

variable dataPointer#

SBDTypeRayData* dataPointer;