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

Method GetSizeSquared

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

Source from the content-addressed store, hash-verified

98}
99
100Vector3 OrientedBoundingBox::GetSizeSquared() const
101{
102 const Vector3 xv = Transformation.LocalToWorldVector(Vector3(Extents.X * 2, 0, 0));
103 const Vector3 yv = Transformation.LocalToWorldVector(Vector3(0, Extents.Y * 2, 0));
104 const Vector3 zv = Transformation.LocalToWorldVector(Vector3(0, 0, Extents.Z * 2));
105 return Vector3(xv.LengthSquared(), yv.LengthSquared(), zv.LengthSquared());
106}
107
108BoundingBox OrientedBoundingBox::GetBoundingBox() const
109{

Callers

nothing calls this directly

Calls 3

Vector3Class · 0.70
LocalToWorldVectorMethod · 0.45
LengthSquaredMethod · 0.45

Tested by

no test coverage detected