Class SBDTypeRay#
#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]#
function SBDTypeRay [2/2]#
function SB_DECLARE_DATA#
function getDirection#
function getOrigin#
function intersectionAABB [1/2]#
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.
function serialize#
Serializes the ray.
void SBDTypeRay::serialize (
SBCSerializer * serializer,
const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER
) const
function setDirection#
function setOrigin#
function unserialize#
Unserializes the ray.
void SBDTypeRay::unserialize (
SBCSerializer * serializer,
const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER
)