docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Vector Operators

    Perform vector and matrix calculations.

    Page Description
    Append Vector Combine up to four inputs into a single vector.
    Construct Matrix Construct a 4x4 matrix from four Vector4 values.
    Cross Product Calculate the vector that's perpendicular to two input vectors
    Distance Calculate the distance between two points.
    Dot Product Determine whether two normalized vectors point in the same direction.
    Length Calculate the length of a vector.
    Look At Calculate the transform required to rotate a particle to look at a position.
    Normalize Normalize a vector.
    Rotate 2D Rotate a point in 2D around a center point.
    Rotate 3D Rotate a point in 3D around a center point.
    Sample Bezier Return information about a curve.
    Squared Distance Calculate the square of the distance between two points.
    Squared Length Calculate the square of the length of a vector.
    Swizzle Rearrange the components of an input vector.

    Additional resources

    • Math Operators
    • Geometry Operators
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)