DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ DistanceSq()

static proto native float vector::DistanceSq ( vector v1,
vector v2 )
staticprivate

Returns the square distance between tips of two 3D vectors.

Аргументы
v1vector 3D Vector 1
v2vector 3D Vector 2
Возвращает
float Squere distance
float dist = vector.DistanceSq( "0 0 0", "0 5 0" );
Print( dist );
>> dist = 25
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
Определения EnConvert.c:106
proto void Print(void var)
Prints content of variable to console/log.

Используется в ActionEnterLadder::ActionCondition(), ActionFillBottleBase::ActionCondition(), ActionFillFuel::ActionCondition(), ActionTriggerRemotely::ActionCondition(), CalculateLinePointFade(), Can(), CCTCursor::Can(), CCTCursorNoObject::Can(), CCTCursorNoRuinCheck::Can(), CCTCursorParent::Can(), CCTMan::Can(), CCTNonRuined::Can(), CCTObject::Can(), CCTParent::Can(), CCTSurface::Can(), CCTTree::Can(), CCTWaterSurface::Can(), ActionTargets::ComputeUtility(), ComponentEnergyManager::DebugUpdate(), ActionTargets::DistSqrPoint2Line(), ActionRepackTentCB::DropDuringRepacking(), ContaminatedArea_Dynamic::EEOnCECreate(), EvaluateComponentEx(), DayZInfected::FightLogic(), FilterObstructedObjectsByGrouping(), Environment::GatherTemperatureSources(), CfgPlayerRestrictedAreaHandler::GetClosestArea(), Land_WarheadStorage_PowerStation::GetClosestBunker(), GetClosestDoor(), PowerGeneratorStatic::GetClosestGenerator(), GetClosestSafePos(), PlayerRestrictedAreaInstance::GetClosestSafePos3D(), GetMeleeTargetEx(), EntityAI::GetNearestDoorBySoundPos(), ActionTargetsCursor::GetOnScreenPosition(), Hologram::GetProjectionEntityPosition(), HitZoneSelectionRaycast(), ActionBase::IsInReach(), IsObjectObstructedEx(), IsPlaceable(), ItemBase::IsPlaceable(), IsShortDistance(), OnAbort(), WeaponStateBase::OnAbort(), RemoteDetonatorTrigger::OnActivatedByItem(), OnCEUpdate(), RemoteDetonatorTrigger::OnCEUpdate(), ActionEmptyMagazine::OnExecuteServer(), WeaponStateBase::OnExit(), Grenade_Base::OnExplosionEffects(), CGame::OnRPC(), FliesMdfr::OnTick(), PluginBase::ProcessUniversalTemperatureSources(), RefreshFireplaceVisuals(), VicinityItemManager::RefreshVicinityItems(), ResizeParticle(), FlareSimulation::Simulate(), SplitArrayIntoGroupsByDistance(), ManBase::SpreadAgentsEx(), TargetSelection() и AreaDamageTriggerBase::UpdateInsiders().