Table of Contents

Interface IVectorGeneric<TVector>

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

Standardization interface for vectors.

public interface IVectorGeneric<TVector> : IEquatable<TVector>, IVector, IFormattable where TVector : IVector

Type Parameters

TVector
Inherited Members

Properties

Normalized

Returns the vector scaled to unit length. Equivalent to v / v.Length().

TVector Normalized { get; }

Property Value

TVector

A normalized version of the vector.

ceil

Returns a new vector with all components rounded up (towards positive infinity).

TVector ceil { get; }

Property Value

TVector

A vector with Ceil(float) called on each component.

floor

Returns a new vector with all components rounded down (towards negative infinity).

TVector floor { get; }

Property Value

TVector

A vector with Floor(float) called on each component.

Methods

Round()

Returns this vector with all components rounded to the nearest integer, with halfway cases rounded towards the nearest multiple of two.

TVector Round()

Returns

TVector

The rounded vector.