Hexagon
Loading...
Searching...
No Matches
HexVectorAxisOps Class Reference

Class for axis operations for all types of vectors. More...

Static Public Member Functions

static Vector3 NullZ (this Vector3 vector)
 Returns a copy of the given Vector3 with the Z component set to 0.
 
static Vector3 WithX (this Vector3 vector, float x)
 Creates a new Vector3 with the specified X component, retaining the original Y and Z components.
 
static Vector3 WithY (this Vector3 vector, float y)
 Creates a new Vector3 with the specified Y component, retaining the original X and Z components.
 
static Vector3 WithZ (this Vector3 vector, float z)
 Creates a new Vector3 with the specified Z component, retaining the original X and Y components.
 
static Vector3 With (this Vector3 vector, float? x=null, float? y=null, float? z=null)
 Creates a new Vector3 with the specified components, leaving the unspecified ones as they were.
 
static Vector3Int WithX (this Vector3Int vector, int x)
 Creates a new Vector3Int with the specified X component, retaining the original Y and Z components.
 
static Vector3Int WithY (this Vector3Int vector, int y)
 Creates a new Vector3Int with the specified Y component, retaining the original X and Z components.
 
static Vector3Int WithZ (this Vector3Int vector, int z)
 Creates a new Vector3Int with the specified Z component, retaining the original X and Y components.
 
static Vector3Int With (this Vector3Int vector, int? x=null, int? y=null, int? z=null)
 Creates a new Vector3 with the specified components, leaving the unspecified ones as they were.
 
static Vector2 WithX (this Vector2 vector, float x)
 Creates a new Vector2 with the specified X component, retaining the original Y component.
 
static Vector2 WithY (this Vector2 vector, float y)
 Creates a new Vector2 with the specified Y component, retaining the original X component.
 
static Vector3 WithZ3D (this Vector2 vector, float z)
 Creates a new Vector3 with the specified Z component, retaining the original X and Y components.
 
static Vector2 With (this Vector2 vector, float? x=null, float? y=null)
 Creates a new Vector3 with the specified components, leaving the unspecified ones as they were.
 
static Vector3 With3D (this Vector2 vector, float? x=null, float? y=null, float z=0)
 Creates a new Vector3 with the specified components, leaving the unspecified ones as they were.
 
static Vector2Int WithX (this Vector2Int vector, int x)
 Creates a new Vector2Int with the specified X component, retaining the original Y component.
 
static Vector2Int WithY (this Vector2Int vector, int y)
 Creates a new Vector2Int with the specified Y component, retaining the original X component.
 
static Vector3Int WithZ3D (this Vector2Int vector, int z)
 Creates a new Vector3Int with the specified Y component, retaining the original X component.
 
static Vector2Int With (this Vector2Int vector, int? x=null, int? y=null)
 Creates a new Vector3 with the specified components, leaving the unspecified ones as they were.
 
static void SetX (this ref Vector3 vector, float x)
 Sets the X component of the Vector3.
 
static void SetY (this ref Vector3 vector, float y)
 Sets the Y component of the Vector3.
 
static void SetZ (this ref Vector3 vector, float z)
 Sets the Z component of the Vector3.
 
static void Set (this ref Vector3 vector, float? x=null, float? y=null, float? z=null)
 Sets the specified components of the Vector3, leaving the unspecified ones as they were.
 
static void SetX (this ref Vector3Int vector, int x)
 Sets the X component of the Vector3Int.
 
static void SetY (this ref Vector3Int vector, int y)
 Sets the Y component of the Vector3Int.
 
static void SetZ (this ref Vector3Int vector, int z)
 Sets the Z component of the Vector3Int.
 
static void Set (this ref Vector3Int vector, int? x=null, int? y=null, int? z=null)
 Sets the specified components of the Vector3Int, leaving the unspecified ones as they were.
 
static void SetX (this ref Vector2 vector, float x)
 Sets the X component of the Vector2.
 
static void SetY (this ref Vector2 vector, float y)
 Sets the Y component of the Vector2.
 
static void Set (this ref Vector2 vector, float? x=null, float? y=null)
 Sets the specified components of the Vector2, leaving the unspecified ones as they were.
 
static void SetX (this ref Vector2Int vector, int x)
 Sets the X component of the Vector2Int.
 
static void SetY (this ref Vector2Int vector, int y)
 Sets the Y component of the Vector2Int.
 
static void Set (this ref Vector2Int vector, int? x=null, int? y=null)
 Sets the specified components of the Vector2, leaving the unspecified ones as they were.
 

Detailed Description

Class for axis operations for all types of vectors.

Member Function Documentation

◆ NullZ()

static Vector3 HexVectorAxisOps.NullZ ( this Vector3 vector)
static

Returns a copy of the given Vector3 with the Z component set to 0.

◆ Set() [1/4]

static void HexVectorAxisOps.Set ( this ref Vector2 vector,
float? x = null,
float? y = null )
inlinestatic

Sets the specified components of the Vector2, leaving the unspecified ones as they were.

◆ Set() [2/4]

static void HexVectorAxisOps.Set ( this ref Vector2Int vector,
int? x = null,
int? y = null )
inlinestatic

Sets the specified components of the Vector2, leaving the unspecified ones as they were.

◆ Set() [3/4]

static void HexVectorAxisOps.Set ( this ref Vector3 vector,
float? x = null,
float? y = null,
float? z = null )
inlinestatic

Sets the specified components of the Vector3, leaving the unspecified ones as they were.

◆ Set() [4/4]

static void HexVectorAxisOps.Set ( this ref Vector3Int vector,
int? x = null,
int? y = null,
int? z = null )
inlinestatic

Sets the specified components of the Vector3Int, leaving the unspecified ones as they were.

◆ SetX() [1/4]

static void HexVectorAxisOps.SetX ( this ref Vector2 vector,
float x )
static

Sets the X component of the Vector2.

◆ SetX() [2/4]

static void HexVectorAxisOps.SetX ( this ref Vector2Int vector,
int x )
static

Sets the X component of the Vector2Int.

◆ SetX() [3/4]

static void HexVectorAxisOps.SetX ( this ref Vector3 vector,
float x )
static

Sets the X component of the Vector3.

◆ SetX() [4/4]

static void HexVectorAxisOps.SetX ( this ref Vector3Int vector,
int x )
static

Sets the X component of the Vector3Int.

◆ SetY() [1/4]

static void HexVectorAxisOps.SetY ( this ref Vector2 vector,
float y )
static

Sets the Y component of the Vector2.

◆ SetY() [2/4]

static void HexVectorAxisOps.SetY ( this ref Vector2Int vector,
int y )
static

Sets the Y component of the Vector2Int.

◆ SetY() [3/4]

static void HexVectorAxisOps.SetY ( this ref Vector3 vector,
float y )
static

Sets the Y component of the Vector3.

◆ SetY() [4/4]

static void HexVectorAxisOps.SetY ( this ref Vector3Int vector,
int y )
static

Sets the Y component of the Vector3Int.

◆ SetZ() [1/2]

static void HexVectorAxisOps.SetZ ( this ref Vector3 vector,
float z )
static

Sets the Z component of the Vector3.

◆ SetZ() [2/2]

static void HexVectorAxisOps.SetZ ( this ref Vector3Int vector,
int z )
static

Sets the Z component of the Vector3Int.

◆ With() [1/4]

static Vector2 HexVectorAxisOps.With ( this Vector2 vector,
float? x = null,
float? y = null )
static

Creates a new Vector3 with the specified components, leaving the unspecified ones as they were.

◆ With() [2/4]

static Vector2Int HexVectorAxisOps.With ( this Vector2Int vector,
int? x = null,
int? y = null )
static

Creates a new Vector3 with the specified components, leaving the unspecified ones as they were.

◆ With() [3/4]

static Vector3 HexVectorAxisOps.With ( this Vector3 vector,
float? x = null,
float? y = null,
float? z = null )
static

Creates a new Vector3 with the specified components, leaving the unspecified ones as they were.

◆ With() [4/4]

static Vector3Int HexVectorAxisOps.With ( this Vector3Int vector,
int? x = null,
int? y = null,
int? z = null )
static

Creates a new Vector3 with the specified components, leaving the unspecified ones as they were.

◆ With3D()

static Vector3 HexVectorAxisOps.With3D ( this Vector2 vector,
float? x = null,
float? y = null,
float z = 0 )
static

Creates a new Vector3 with the specified components, leaving the unspecified ones as they were.

◆ WithX() [1/4]

static Vector2 HexVectorAxisOps.WithX ( this Vector2 vector,
float x )
static

Creates a new Vector2 with the specified X component, retaining the original Y component.

◆ WithX() [2/4]

static Vector2Int HexVectorAxisOps.WithX ( this Vector2Int vector,
int x )
static

Creates a new Vector2Int with the specified X component, retaining the original Y component.

◆ WithX() [3/4]

static Vector3 HexVectorAxisOps.WithX ( this Vector3 vector,
float x )
static

Creates a new Vector3 with the specified X component, retaining the original Y and Z components.

◆ WithX() [4/4]

static Vector3Int HexVectorAxisOps.WithX ( this Vector3Int vector,
int x )
static

Creates a new Vector3Int with the specified X component, retaining the original Y and Z components.

◆ WithY() [1/4]

static Vector2 HexVectorAxisOps.WithY ( this Vector2 vector,
float y )
static

Creates a new Vector2 with the specified Y component, retaining the original X component.

◆ WithY() [2/4]

static Vector2Int HexVectorAxisOps.WithY ( this Vector2Int vector,
int y )
static

Creates a new Vector2Int with the specified Y component, retaining the original X component.

◆ WithY() [3/4]

static Vector3 HexVectorAxisOps.WithY ( this Vector3 vector,
float y )
static

Creates a new Vector3 with the specified Y component, retaining the original X and Z components.

◆ WithY() [4/4]

static Vector3Int HexVectorAxisOps.WithY ( this Vector3Int vector,
int y )
static

Creates a new Vector3Int with the specified Y component, retaining the original X and Z components.

◆ WithZ() [1/2]

static Vector3 HexVectorAxisOps.WithZ ( this Vector3 vector,
float z )
static

Creates a new Vector3 with the specified Z component, retaining the original X and Y components.

◆ WithZ() [2/2]

static Vector3Int HexVectorAxisOps.WithZ ( this Vector3Int vector,
int z )
static

Creates a new Vector3Int with the specified Z component, retaining the original X and Y components.

◆ WithZ3D() [1/2]

static Vector3 HexVectorAxisOps.WithZ3D ( this Vector2 vector,
float z )
static

Creates a new Vector3 with the specified Z component, retaining the original X and Y components.

◆ WithZ3D() [2/2]

static Vector3Int HexVectorAxisOps.WithZ3D ( this Vector2Int vector,
int z )
static

Creates a new Vector3Int with the specified Y component, retaining the original X component.


The documentation for this class was generated from the following file: