{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method ClosestPointOnSegment | Cinemachine | 2.6.0
docs.unity3d.com
"{0}" の検索結果

    目次を表示する/隠す

    Method ClosestPointOnSegment

    ClosestPointOnSegment(Vector3, Vector3, Vector3)

    Get the closest point on a line segment.

    Declaration
    public static float ClosestPointOnSegment(this Vector3 p, Vector3 s0, Vector3 s1)
    Parameters
    Type Name Description
    Vector3 p

    A point in space

    Vector3 s0

    Start of line segment

    Vector3 s1

    End of line segment

    Returns
    Type Description
    float

    The interpolation parameter representing the point on the segment, with 0==s0, and 1==s1

    ClosestPointOnSegment(Vector2, Vector2, Vector2)

    Get the closest point on a line segment.

    Declaration
    public static float ClosestPointOnSegment(this Vector2 p, Vector2 s0, Vector2 s1)
    Parameters
    Type Name Description
    Vector2 p

    A point in space

    Vector2 s0

    Start of line segment

    Vector2 s1

    End of line segment

    Returns
    Type Description
    float

    The interpolation parameter representing the point on the segment, with 0==s0, and 1==s1

    概要
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)