was.php
/trunk/src/lsl/lsl.php |
---|
@@ -0,0 +1,15 @@ |
<?php |
########################################################################### |
## Copyright (C) Wizardry and Steamworks 2015 - License: GNU GPLv3 ## |
########################################################################### |
function wasLSLVectorToArray($vector) { |
$components = array(); |
if(!preg_match( |
"/^<\s*([0-9\.]+?)\s*,\s*([0-9\.]+?)\s*,\s*([0-9\.]+?)\s*>$/", |
$vector, |
$components |
)) return; |
array_shift($components); |
return $components; |
} |