You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.4 KiB
35 lines
1.4 KiB
|
|
using System; |
|
using System.IO; |
|
using System.Collections.Generic; |
|
using System.Text.RegularExpressions; |
|
|
|
using UnityEngine; |
|
|
|
namespace UnityExtension |
|
{ |
|
//------------------------------------------------------------------------------------------------------------ |
|
public static class Vector3Ext |
|
{ |
|
//------------------------------------------------------------------------------------------------------------ |
|
public static readonly Vector3 IgnoreX = new Vector3(0f, 1f, 1f); |
|
public static readonly Vector3 IgnoreY = new Vector3(1f, 0f, 1f); |
|
public static readonly Vector3 IgnoreZ = new Vector3(1f, 1f, 0f); |
|
|
|
//------------------------------------------------------------------------------------------------------------ |
|
public static Color ToColor(this Vector3 lVector) |
|
{ |
|
return new Color(lVector.x, lVector.y, lVector.z); |
|
} |
|
} |
|
|
|
//------------------------------------------------------------------------------------------------------------ |
|
public static class Vector4Ext |
|
{ |
|
//------------------------------------------------------------------------------------------------------------ |
|
public static Color ToColor(this Vector4 lVector) |
|
{ |
|
return new Color(lVector.x, lVector.y, lVector.z, lVector.w); |
|
} |
|
} |
|
}
|
|
|