MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetSize

Method GetSize

Source/Engine/Core/Math/OrientedBoundingBox.cpp:92–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92Vector3 OrientedBoundingBox::GetSize() const
93{
94 const Vector3 xv = Transformation.LocalToWorldVector(Vector3(Extents.X * 2, 0, 0));
95 const Vector3 yv = Transformation.LocalToWorldVector(Vector3(0, Extents.Y * 2, 0));
96 const Vector3 zv = Transformation.LocalToWorldVector(Vector3(0, 0, Extents.Z * 2));
97 return Vector3(xv.Length(), yv.Length(), zv.Length());
98}
99
100Vector3 OrientedBoundingBox::GetSizeSquared() const
101{

Callers 15

RunMethod · 0.45
CloneObjectFunction · 0.45
ImportMethod · 0.45
CreateMethod · 0.45
ImportMethod · 0.45
CreateMethod · 0.45
GetDataMethod · 0.45
SaveMethod · 0.45
saveInternalMethod · 0.45
OnGetDataMethod · 0.45
SaveLODMethod · 0.45
GetReferencesMethod · 0.45

Calls 3

Vector3Class · 0.70
LocalToWorldVectorMethod · 0.45
LengthMethod · 0.45

Tested by

no test coverage detected