{"url":"https://hacchi-man.hatenablog.com/entry/2021/02/04/220000","provider_name":"Hatena Blog","title":"\u3010Unity\u3011\u5b9f\u6570 (float) \u306e\u5c11\u6570\u90e8\u5206\u3092\u53d6\u5f97\u3059\u308b","version":"1.0","categories":["Unity","Mathf"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhacchi-man.hatenablog.com%2Fentry%2F2021%2F02%2F04%2F220000\" title=\"\u3010Unity\u3011\u5b9f\u6570 (float) \u306e\u5c11\u6570\u90e8\u5206\u3092\u53d6\u5f97\u3059\u308b - \u3046\u306b\u3066\u3043\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"hacchi_man","height":"190","width":"100%","type":"rich","blog_title":"\u3046\u306b\u3066\u3043\u30d6\u30ed\u30b0","published":"2021-02-04 22:00:00","description":"shader \u306b\u306f\u5c11\u6570\u90e8\u5206\u3092\u53d6\u5f97\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3068\u3057\u3066 frac \u304c\u3042\u308b\u304c Mathf \u306b\u306f\u7121\u304b\u3063\u305f\u306e\u3067\u4f5c\u6210 \u51e6\u7406\u3082\u5358\u7d14\u3067 \u5b9f\u6570\u304b\u3089\u5b9f\u6570\u306e\u6574\u6570 \u3092\u5f15\u304f\u3060\u3051 \u203b (1.23 - 1 = 0.23) public static class MathUtil { /// <summary> /// \u5c11\u6570\u90e8\u5206\u3092\u8fd4\u3059 /// </summary> public static float Frac(float value) { return value - UnityEngine.Mathf.FloorToInt(value); } }","provider_url":"https://hatena.blog","image_url":null,"blog_url":"https://hacchi-man.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/hacchi_man/"}