Struct Vec3 | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct Vec3

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: LibTessDotNet
    Syntax
    public struct Vec3

    Fields

    X

    Declaration
    public Real X
    Field Value
    Type Description
    Real

    Y

    Declaration
    public Real Y
    Field Value
    Type Description
    Real

    Z

    Declaration
    public Real Z
    Field Value
    Type Description
    Real

    Zero

    Declaration
    public static readonly Vec3 Zero
    Field Value
    Type Description
    Vec3

    Properties

    Item[Int32]

    Declaration
    public Real this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    Real

    Methods

    Dot(ref Vec3, ref Vec3, out Real)

    Declaration
    public static void Dot(ref Vec3 u, ref Vec3 v, out Real dot)
    Parameters
    Type Name Description
    Vec3 u
    Vec3 v
    Real dot

    LongAxis(ref Vec3)

    Declaration
    public static int LongAxis(ref Vec3 v)
    Parameters
    Type Name Description
    Vec3 v
    Returns
    Type Description
    System.Int32

    Neg(ref Vec3)

    Declaration
    public static void Neg(ref Vec3 v)
    Parameters
    Type Name Description
    Vec3 v

    Normalize(ref Vec3)

    Declaration
    public static void Normalize(ref Vec3 v)
    Parameters
    Type Name Description
    Vec3 v

    Sub(ref Vec3, ref Vec3, out Vec3)

    Declaration
    public static void Sub(ref Vec3 lhs, ref Vec3 rhs, out Vec3 result)
    Parameters
    Type Name Description
    Vec3 lhs
    Vec3 rhs
    Vec3 result

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023