您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

29 行
588 B

using System.Runtime.CompilerServices;
using UnityEngine;
using static Unity.Mathematics.math;
namespace CollisionLib
{
using Unity.Mathematics;
public struct ray
{
public float3 origin;
public float3 direction;
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public ray(float3 origin, float3 direction)
{
this.origin = origin;
this.direction = direction;
}
}
public static partial class coll
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static ray ray(float3 origin, float3 direction) { return new ray(origin, direction); }
}
}