DayZ 1.30
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:119
proto void Print(void var)
Prints content of variable to console/log.

Используется в ActionCondition(), ActionEnterLadder::ActionCondition(), ActionFillBottleBase::ActionCondition(), ActionTriggerRemotely::ActionCondition(), CCTLiquid::ApplySyntheticHitCursorStability(), CalculateLinePointFade(), Can(), CCTCursor::Can(), CCTCursorInherited::Can(), CCTCursorNoObject::Can(), CCTCursorNoRuinCheck::Can(), CCTCursorParent::Can(), CCTMan::Can(), CCTNonRuined::Can(), CCTObject::Can(), CCTSurface::Can(), CCTTree::Can(), CCTWaterSurface::Can(), ActionTargets::ComputeUtility(), ComponentEnergyManager::DebugUpdate(), ActionTargets::DistSqrPoint2Line(), ActionRepackTentCB::DropDuringRepacking(), EEOnCECreate(), EvaluateComponentEx(), DayZInfected::FightLogic(), FilterObstructedObjectsByGrouping(), CfgPlayerRestrictedAreaHandler::GetClosestArea(), Land_WarheadStorage_PowerStation::GetClosestBunker(), GetClosestDoor(), PowerGeneratorStatic::GetClosestGenerator(), GetClosestSafePos(), PlayerRestrictedAreaInstance::GetClosestSafePos3D(), GetMeleeTargetEx(), Building::GetNearestDoorBySoundPos(), ActionTargetsCursor::GetOnScreenPosition(), Hologram::GetProjectionEntityPosition(), HitZoneSelectionRaycast(), CCTLiquid::IsCachedSyntheticCursorRelevant(), IsInReach(), CCTLiquid::IsNearlyZero(), IsObjectObstructedEx(), IsPlaceable(), ItemBase::IsPlaceable(), CCTLiquid::IsPositionNearCurrentCameraRay(), IsShortDistance(), Weapon::LiftWeaponCheckEx(), WeaponStateBase::OnAbort(), RemoteDetonatorTrigger::OnActivatedByItem(), OnCEIterate(), RemoteDetonatorTrigger::OnCEIterate(), ActionEmptyMagazine::OnExecuteServer(), WeaponStateBase::OnExit(), Grenade_Base::OnExplosionEffects(), CGame::OnRPC(), FliesMdfr::OnTick(), PluginBase::ProcessUniversalTemperatureSources(), RefreshFireplaceVisuals(), VicinityItemManager::RefreshVicinityItems(), ResizeParticle(), FlareSimulation::Simulate(), ActionTargets::SortResultsDistance(), SplitArrayIntoGroupsByDistance(), ManBase::SpreadAgentsEx(), TargetSelection(), CCTLiquid::TryBuildSeaLevelHitPosition(), DigitalCodeLockUI::Update(), AreaDamageTriggerBase::UpdateInsiders() и OilPitTrigger::UpdateSoundRange().