Table of Contents

Interface IIntVector

Namespace
Cobilas.GodotEngine.Utility.Numerics
Assembly
com.cobilas.godot.utility.dll

Standardization interface for vectors.

public interface IIntVector : IFormattable
Inherited Members

Properties

AxisCount

Number of axles.

int AxisCount { get; }

Property Value

int

Returns the number of axes a vector has.

this[int]

Allows you to access the axes of a vector through an index.

int this[int index] { get; set; }

Parameters

index int

The axis index.

Property Value

int

Sets the value of an axis by specifying its index.

aspect

Returns the aspect ratio of this vector, the ratio of IVector.x to IVector.y.

float aspect { get; }

Property Value

float

The IVector.x component divided by the IVector.y component.

magnitude

Returns the length (magnitude) of this vector.

float magnitude { get; }

Property Value

float

The length of this vector.

See Also
LengthSquared()

sqrMagnitude

Returns the squared length (squared magnitude) of this vector. This method runs faster than magnitude, so prefer it if you need to compare vectors or need the squared length for some formula.

int sqrMagnitude { get; }

Property Value

int

The squared length of this vector.

Methods

ToString(string)

Formats the value of the current instance using the specified format.

string ToString(string format)

Parameters

format string

The format to use.-or- A null reference (Nothing in Visual Basic) to use the default format defined for the type of the IFormattable implementation.

Returns

string

The value of the current instance in the specified format.