VectorExtensions Class

Definition

Extension methods for Unity's Vector struct

public ref class VectorExtensions abstract sealed
public static class VectorExtensions
type VectorExtensions = class
Public Module VectorExtensions
Inheritance
VectorExtensions

Methods

Average(ICollection<Vector2>)
Average(ICollection<Vector3>)
Average(IEnumerable<Vector2>)
Average(IEnumerable<Vector3>)
CloseEnough(Vector3, Vector3, Single)

Determines if the distance between two vectors is within a given tolerance.

CylindricalMapping(Vector3, Single)

Get the relative mapping based on a source Vec3 and a radius for cylinder mapping.

Div(Vector2, Vector2)
Div(Vector3, Vector3)
InverseTransformPoint(Vector3, Vector3, Quaternion, Vector3)
IsValidVector(Vector3)
Median(ICollection<Vector2>)
Median(ICollection<Vector3>)
Median(IEnumerable<Vector2>)
Median(IEnumerable<Vector3>)
Mul(Vector2, Vector2)
Mul(Vector3, Vector3)
RadialMapping(Vector3, Single, Single, Int32, Int32, Int32, Int32)

Get the relative mapping based on a source Vec3 and a radius for radial mapping.

RotateAround(Vector3, Vector3, Quaternion)
RotateAround(Vector3, Vector3, Vector3)
ScatterMapping(Vector3, Single)

Randomized mapping based on a source Vec3 and a radius for randomization distance.

SphericalMapping(Vector3, Single)

Get the relative mapping based on a source Vec3 and a radius for spherical mapping.

TransformPoint(Vector3, Vector3, Quaternion, Vector3)

Applies to