ããã > ActionScript > [AS3] è·é¢ã¯PointãVector3Dã¯ã©ã¹ã®ã¡ã½ããããMath.sqrt()ã¨ä¸å¹³æ¹ã®å®çã§æ±ããæ¹ãéã PointãVector3Dã¯ã©ã¹ã«ã¯ã座æ¨ã¨åº§æ¨ã®éã®è·é¢ãæ±ããåãååã®éçã¡ã½ããdistance()ãããã¾ããããããéãã稼ãã«ã¯ãããã®ã¡ã½ããã§ãªããMath.sqrt()ã¡ã½ãããç¨ãã¦ä¸å¹³æ¹ã®å®çã§å°ãæ¹ããå¾ã§ãã Point.distance()ã¨Vector3D.distance()ã¯ãã¨ãã«åº§æ¨ã¨åº§æ¨ã®éã®è·é¢ãæ±ããéçã¡ã½ããã§ããå¼æ°ã«ã¯åº§æ¨ãç´ããããPointã¾ãã¯Vector3Dã¤ã³ã¹ã¿ã³ã¹ããµãã¤æ¸¡ããNumberåã®è·é¢ãè¿ããã¾ãã Point.distance(Pointã¤ã³ã¹ã¿ã³ã¹0, Pointã¤ã³ã¹ã¿ã³ã¹1) Vector3D.distance(Vector3Dã¤ã³ã¹ã¿ã³ã¹0
{{#tags}}- {{label}}
{{/tags}}