docs.unity3d.com
    Show / Hide Table of Contents

    Class GfVec2f

    Inheritance
    Object
    GfVec2f
    Inherited Members
    Object.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: pxr
    Syntax
    public class GfVec2f : IDisposable

    Constructors

    GfVec2f()

    Declaration
    public GfVec2f()

    GfVec2f(GfVec2d)

    Declaration
    public GfVec2f(GfVec2d other)
    Parameters
    Type Name Description
    GfVec2d other

    GfVec2f(GfVec2h)

    Declaration
    public GfVec2f(GfVec2h other)
    Parameters
    Type Name Description
    GfVec2h other

    GfVec2f(GfVec2i)

    Declaration
    public GfVec2f(GfVec2i other)
    Parameters
    Type Name Description
    GfVec2i other

    GfVec2f(Single)

    Declaration
    public GfVec2f(float value)
    Parameters
    Type Name Description
    Single value

    GfVec2f(Single, Single)

    Declaration
    public GfVec2f(float s0, float s1)
    Parameters
    Type Name Description
    Single s0
    Single s1

    Fields

    dimension

    Declaration
    public static readonly uint dimension
    Field Value
    Type Description
    UInt32

    swigCMemOwn

    Declaration
    protected bool swigCMemOwn
    Field Value
    Type Description
    Boolean

    Properties

    Item[Int32]

    Declaration
    public float this[int index] { get; set; }
    Parameters
    Type Name Description
    Int32 index
    Property Value
    Type Description
    Single

    Methods

    Axis(UInt32)

    Declaration
    public static GfVec2f Axis(uint i)
    Parameters
    Type Name Description
    UInt32 i
    Returns
    Type Description
    GfVec2f

    Dispose()

    Declaration
    public virtual void Dispose()
    Implements
    IDisposable.Dispose()

    Equals(GfVec2f, GfVec2f)

    Declaration
    public static bool Equals(GfVec2f lhs, GfVec2f rhs)
    Parameters
    Type Name Description
    GfVec2f lhs
    GfVec2f rhs
    Returns
    Type Description
    Boolean

    Equals(Object)

    Declaration
    public override bool Equals(object rhs)
    Parameters
    Type Name Description
    Object rhs
    Returns
    Type Description
    Boolean
    Overrides
    Object.Equals(Object)

    Finalize()

    Declaration
    protected void Finalize()

    GetComplement(GfVec2f)

    Declaration
    public GfVec2f GetComplement(GfVec2f b)
    Parameters
    Type Name Description
    GfVec2f b
    Returns
    Type Description
    GfVec2f

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Object.GetHashCode()

    GetLength()

    Declaration
    public float GetLength()
    Returns
    Type Description
    Single

    GetLengthSq()

    Declaration
    public float GetLengthSq()
    Returns
    Type Description
    Single

    GetNormalized()

    Declaration
    public GfVec2f GetNormalized()
    Returns
    Type Description
    GfVec2f

    GetNormalized(Single)

    Declaration
    public GfVec2f GetNormalized(float eps)
    Parameters
    Type Name Description
    Single eps
    Returns
    Type Description
    GfVec2f

    GetProjection(GfVec2f)

    Declaration
    public GfVec2f GetProjection(GfVec2f v)
    Parameters
    Type Name Description
    GfVec2f v
    Returns
    Type Description
    GfVec2f

    GetValue(Int32)

    Declaration
    protected float GetValue(int index)
    Parameters
    Type Name Description
    Int32 index
    Returns
    Type Description
    Single

    Normalize()

    Declaration
    public float Normalize()
    Returns
    Type Description
    Single

    Normalize(Single)

    Declaration
    public float Normalize(float eps)
    Parameters
    Type Name Description
    Single eps
    Returns
    Type Description
    Single

    Set(Single, Single)

    Declaration
    public GfVec2f Set(float s0, float s1)
    Parameters
    Type Name Description
    Single s0
    Single s1
    Returns
    Type Description
    GfVec2f

    SetValue(Int32, Single)

    Declaration
    protected void SetValue(int index, float value)
    Parameters
    Type Name Description
    Int32 index
    Single value

    XAxis()

    Declaration
    public static GfVec2f XAxis()
    Returns
    Type Description
    GfVec2f

    YAxis()

    Declaration
    public static GfVec2f YAxis()
    Returns
    Type Description
    GfVec2f

    Operators

    Equality(GfVec2f, GfVec2f)

    Declaration
    public static bool operator ==(GfVec2f lhs, GfVec2f rhs)
    Parameters
    Type Name Description
    GfVec2f lhs
    GfVec2f rhs
    Returns
    Type Description
    Boolean

    Inequality(GfVec2f, GfVec2f)

    Declaration
    public static bool operator !=(GfVec2f lhs, GfVec2f rhs)
    Parameters
    Type Name Description
    GfVec2f lhs
    GfVec2f rhs
    Returns
    Type Description
    Boolean
    Back to top
    Copyright © 2023 Unity Technologies
    • 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 Thursday, October 19, 2023