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
intThe axis index.
Property Value
- int
Sets the value of an axis by specifying its index.
aspect
float aspect { get; }
Property Value
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
stringThe 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.