• Articles
  • Api Documentation
Show / Hide Table of Contents
  • DDSLoader
    • DDSImage
    • DDSImage.DDSHeader
    • DDSImage.DDSPixelFormat
    • DDSImage.HeaderFlags
    • DDSImage.PixelFormatFlags
    • DDSUnityExtensions
    • FourCC
  • LLBML
    • BallApi
    • CharacterApi
    • GraphicUtils
    • InputApi
    • LLBMLPlugin
    • LoadingInfo
    • LoadingScreen
    • PluginInfos
    • ProgressApi
    • ScreenApi
    • StateApi
  • LLBML.Audio
    • AudioAsset
    • AudioCache
    • AudioInfo
    • AudioUtils
  • LLBML.External
    • IntHelpers
    • Murmur3
  • LLBML.GameEvents
    • GameEvents
    • GameStateEvents
    • LobbyEventArgs
    • LobbyEvents
    • LobbyReadyArgs
    • MenuEvents
    • OnLobbyEnteredHandler
    • OnLobbyReadyHandler
    • OnMainMenuEnteredArgs
    • OnMainMenuEnteredHandler
    • OnMainMenuFirstEnteredHandler
    • OnPlayerJoinArgs
    • OnPlayerJoinHandler
    • OnStateChangeArgs
    • OnStateChangeHandler
    • OnUnlinkFromPlayerArgs
    • OnUnlinkFromPlayerHandler
    • OnUserCharacterPickArgs
    • OnUserCharacterPickHandler
    • OnUserSkinClickArgs
    • OnUserSkinClickHandler
  • LLBML.Graphic
    • Draw
    • Draw.Alignment
  • LLBML.Math
    • BinaryUtils
    • Boundsf
    • Floatf
    • Vector2f
    • Vector2i
  • LLBML.Messages
    • CustomMessage
    • MessageActions
    • MessageApi
    • MessageApi.OnReceiveMessageHandler
    • MessageEventArgs
  • LLBML.Networking
    • Channel
    • EnvelopeApi
    • EnvelopeApi.OnReceiveEnvelopeHandler
    • EnvelopeEventArgs
    • EP2PSend
    • EP2PSend.Enum
    • EP2PSend.Enum_Mapping
    • NetworkApi
    • Transaction
    • TransactionCode
    • TransactionState
  • LLBML.Players
    • Player
    • PlayerStatus
    • PlayerStatus.Enum
    • PlayerStatus.Enum_Mappings
    • Team
    • Team.Enum
    • Team.Enum_Mappings
  • LLBML.Settings
    • GameSettings
  • LLBML.States
    • GameState
    • GameState.Enum
    • GameState.Enum_Mapping
    • GameStates
    • GameStatesGameUtils
    • GameStatesLobbyUtils
    • PlayerLobbyState
  • LLBML.Texture
    • TextureUtils
  • LLBML.UI
    • Dialogs
  • LLBML.Utils
    • ArrayExtension
    • BepInRef
    • ControlledRandom
    • DebugUtils
    • EnumWrapper<T>
    • GenericCache<K, T>
    • GenericUtils
    • Hash<T>
    • IByteable
    • ModDependenciesUtils
    • ModdingFolder
    • PatchUtils
    • StringUtils

Struct Vector2f

A reimplementation of the game's obfuscated Vector2f struct

Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: LLBML.Math
Assembly: LLBModdingLib.dll
Syntax
public struct Vector2f

Constructors

Vector2f(Floatf, Floatf)

Declaration
public Vector2f(Floatf _x, Floatf _y)
Parameters
Type Name Description
Floatf _x
Floatf _y

Vector2f(Int32, Int32)

Declaration
public Vector2f(int _x, int _y)
Parameters
Type Name Description
System.Int32 _x
System.Int32 _y

Fields

x

Declaration
public Floatf x
Field Value
Type Description
Floatf

y

Declaration
public Floatf y
Field Value
Type Description
Floatf

Properties

down

Declaration
public static readonly Vector2f down { get; }
Property Value
Type Description
Vector2f

left

Declaration
public static readonly Vector2f left { get; }
Property Value
Type Description
Vector2f

magnitude

Declaration
public readonly Floatf magnitude { get; }
Property Value
Type Description
Floatf

normalized

Declaration
public readonly Vector2f normalized { get; }
Property Value
Type Description
Vector2f

one

Declaration
public static readonly Vector2f one { get; }
Property Value
Type Description
Vector2f

right

Declaration
public static readonly Vector2f right { get; }
Property Value
Type Description
Vector2f

sqrMagnitude

Declaration
public readonly Floatf sqrMagnitude { get; }
Property Value
Type Description
Floatf

up

Declaration
public static readonly Vector2f up { get; }
Property Value
Type Description
Vector2f

zero

Declaration
public static readonly Vector2f zero { get; }
Property Value
Type Description
Vector2f

Methods

DirectionToAngle(Vector2f)

Converts a Direction to an Angle

Declaration
public static Floatf DirectionToAngle(Vector2f dir)
Parameters
Type Name Description
Vector2f dir

Direction e.g flyDirection

Returns
Type Description
Floatf

Angle in degrees.

Equals(Vector2f)

Declaration
public bool Equals(Vector2f v)
Parameters
Type Name Description
Vector2f v
Returns
Type Description
System.Boolean

Equals(Object)

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

GetHashCode()

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

ToAngle()

Converts a Direction to an Angle

Declaration
public Floatf ToAngle()
Returns
Type Description
Floatf

Angle in degrees.

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.ValueType.ToString()

ToString(String)

Declaration
public string ToString(string format)
Parameters
Type Name Description
System.String format
Returns
Type Description
System.String

Operators

Addition(Vector2f, Vector2f)

Declaration
public static Vector2f operator +(Vector2f a, Vector2f b)
Parameters
Type Name Description
Vector2f a
Vector2f b
Returns
Type Description
Vector2f

Division(Vector2f, Floatf)

Declaration
public static Vector2f operator /(Vector2f a, Floatf d)
Parameters
Type Name Description
Vector2f a
Floatf d
Returns
Type Description
Vector2f

Equality(Vector2f, Vector2f)

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

Explicit(Vector2f to Vector2i)

Declaration
public static explicit operator Vector2i(Vector2f v)
Parameters
Type Name Description
Vector2f v
Returns
Type Description
Vector2i

Explicit(Vector2f to Vector2)

Declaration
public static explicit operator Vector2(Vector2f v)
Parameters
Type Name Description
Vector2f v
Returns
Type Description
UnityEngine.Vector2

Explicit(Vector2f to Vector3)

Declaration
public static explicit operator Vector3(Vector2f v)
Parameters
Type Name Description
Vector2f v
Returns
Type Description
UnityEngine.Vector3

Explicit(Vector2i to Vector2f)

Declaration
public static explicit operator Vector2f(Vector2i v)
Parameters
Type Name Description
Vector2i v
Returns
Type Description
Vector2f

Explicit(Vector2 to Vector2f)

Declaration
public static explicit operator Vector2f(Vector2 v)
Parameters
Type Name Description
UnityEngine.Vector2 v
Returns
Type Description
Vector2f

Explicit(Vector3 to Vector2f)

Declaration
public static explicit operator Vector2f(Vector3 v)
Parameters
Type Name Description
UnityEngine.Vector3 v
Returns
Type Description
Vector2f

Implicit(IBGCBLLKIHA to Vector2f)

Declaration
public static implicit operator Vector2f(IBGCBLLKIHA v)
Parameters
Type Name Description
IBGCBLLKIHA v
Returns
Type Description
Vector2f

Implicit(Vector2f to IBGCBLLKIHA)

Declaration
public static implicit operator IBGCBLLKIHA(Vector2f v)
Parameters
Type Name Description
Vector2f v
Returns
Type Description
IBGCBLLKIHA

Inequality(Vector2f, Vector2f)

Declaration
public static bool operator !=(Vector2f lhs, Vector2f rhs)
Parameters
Type Name Description
Vector2f lhs
Vector2f rhs
Returns
Type Description
System.Boolean

Multiply(Floatf, Vector2f)

Declaration
public static Vector2f operator *(Floatf d, Vector2f a)
Parameters
Type Name Description
Floatf d
Vector2f a
Returns
Type Description
Vector2f

Multiply(Vector2f, Floatf)

Declaration
public static Vector2f operator *(Vector2f a, Floatf d)
Parameters
Type Name Description
Vector2f a
Floatf d
Returns
Type Description
Vector2f

Subtraction(Vector2f, Vector2f)

Declaration
public static Vector2f operator -(Vector2f a, Vector2f b)
Parameters
Type Name Description
Vector2f a
Vector2f b
Returns
Type Description
Vector2f

UnaryNegation(Vector2f)

Declaration
public static Vector2f operator -(Vector2f a)
Parameters
Type Name Description
Vector2f a
Returns
Type Description
Vector2f
In This Article
Back to top Generated by DocFX