|
|
|
|
|
|
// PackingRules = Exact |
|
|
|
struct OrientedBBox |
|
|
|
{ |
|
|
|
float3 center; |
|
|
|
float3 right; |
|
|
|
float3 right; |
|
|
|
float3 up; |
|
|
|
float3 up; |
|
|
|
float3 center; |
|
|
|
float extentZ; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
float3 GetCenter(OrientedBBox value) |
|
|
|
float3 GetRight(OrientedBBox value) |
|
|
|
return value.center; |
|
|
|
return value.right; |
|
|
|
float3 GetRight(OrientedBBox value) |
|
|
|
float3 GetUp(OrientedBBox value) |
|
|
|
return value.right; |
|
|
|
return value.up; |
|
|
|
float3 GetUp(OrientedBBox value) |
|
|
|
float3 GetCenter(OrientedBBox value) |
|
|
|
return value.up; |
|
|
|
return value.center; |
|
|
|
} |
|
|
|
float GetExtentZ(OrientedBBox value) |
|
|
|
{ |
|
|
|