---
title: simd_float2
framework: simd
role: symbol
role_heading: Type Alias
path: simd/simd_float2
---

# simd_float2

A vector of two 32-bit floating-point elements.

## Declaration

```swift
typealias simd_float2 = SIMD2<Float>
```

## Topics

### Functions to Create Two-Element Vectors From Other Vectors

- [simd_make_float2(_:)](simd/simd_make_float2(_:)-3nphb.md)
- [simd_make_float2(_:)](simd/simd_make_float2(_:)-3kta4.md)
- [simd_make_float2(_:)](simd/simd_make_float2(_:)-32usp.md)
- [simd_make_float2(_:)](simd/simd_make_float2(_:)-493yd.md)
- [simd_make_float2(_:)](simd/simd_make_float2(_:)-4e6k3.md)

### Functions to Create Two-Element Vectors From Scalar Values

- [simd_make_float2(_:)](simd/simd_make_float2(_:)-70ndk.md)
- [simd_make_float2(_:_:)](simd/simd_make_float2(_:_:).md)
- [simd_make_float2_undef(_:)](simd/simd_make_float2_undef(_:).md)

### Common Functions

- [simd_abs(_:)](simd/simd_abs(_:)-886vq.md)
- [abs(_:)](simd/abs(_:)-6ckob.md)
- [simd_clamp(_:_:_:)](simd/simd_clamp(_:_:_:)-9b6uf.md)
- [clamp(_:min:max:)](simd/clamp(_:min:max:)-5rthg.md)
- [clamp(_:min:max:)](simd/clamp(_:min:max:)-3oo0f.md)
- [simd_equal(_:_:)](simd/simd_equal(_:_:)-9z8e8.md)
- [simd_fract(_:)](simd/simd_fract(_:)-42ipv.md)
- [fract(_:)](simd/fract(_:)-7rplw.md)
- [simd_sign(_:)](simd/simd_sign(_:)-6jld1.md)
- [sign(_:)](simd/sign(_:)-2e6do.md)
- [simd_step(_:_:)](simd/simd_step(_:_:)-9xjdc.md)
- [step(_:edge:)](simd/step(_:edge:)-1pthr.md)

### Reduce Functions

- [simd_reduce_add(_:)](simd/simd_reduce_add(_:)-2pzn6.md)
- [reduce_add(_:)](simd/reduce_add(_:)-39n2m.md)
- [simd_reduce_max(_:)](simd/simd_reduce_max(_:)-4kjh0.md)
- [reduce_max(_:)](simd/reduce_max(_:)-4zzwq.md)
- [simd_reduce_min(_:)](simd/simd_reduce_min(_:)-49sh0.md)
- [reduce_min(_:)](simd/reduce_min(_:)-76co5.md)

### Interpolation Functions

- [simd_mix(_:_:_:)](simd/simd_mix(_:_:_:)-bvhh.md)
- [mix(_:_:t:)](simd/mix(_:_:t:)-2z3yo.md)
- [mix(_:_:t:)](simd/mix(_:_:t:)-14tli.md)
- [simd_smoothstep(_:_:_:)](simd/simd_smoothstep(_:_:_:)-7iziv.md)
- [smoothstep(_:edge0:edge1:)](simd/smoothstep(_:edge0:edge1:)-43udr.md)

### Extrema Functions

- [simd_max(_:_:)](simd/simd_max(_:_:)-6uws6.md)
- [max(_:_:)](simd/max(_:_:)-35pzn.md)
- [max(_:_:)](simd/max(_:_:)-9ye2a.md)
- [fmax(_:_:)](simd/fmax(_:_:)-3cz61.md)
- [simd_min(_:_:)](simd/simd_min(_:_:)-9xyee.md)
- [min(_:_:)](simd/min(_:_:)-3eaa2.md)
- [min(_:_:)](simd/min(_:_:)-6cnnq.md)
- [fmin(_:_:)](simd/fmin(_:_:)-7jupb.md)

### Reciprocal and Reciprocal Square Root Functions

- [simd_recip(_:)](simd/simd_recip(_:)-8nf6c.md)
- [recip(_:)](simd/recip(_:)-2opi.md)
- [simd_rsqrt(_:)](simd/simd_rsqrt(_:)-okw0.md)
- [rsqrt(_:)](simd/rsqrt(_:)-1er1q.md)
- [simd_precise_recip(_:)](simd/simd_precise_recip(_:)-66mt8.md)
- [simd_precise_rsqrt(_:)](simd/simd_precise_rsqrt(_:)-wqzu.md)
- [simd_fast_recip(_:)](simd/simd_fast_recip(_:)-ll5x.md)
- [simd_fast_rsqrt(_:)](simd/simd_fast_rsqrt(_:)-84cs6.md)

### Exponential and Logarithmic Functions

- [exp(_:)](simd/exp(_:)-3pa97.md)
- [exp2(_:)](simd/exp2(_:)-6sez2.md)
- [exp10(_:)](simd/exp10(_:)-6ga3o.md)
- [expm1(_:)](simd/expm1(_:)-3bqf9.md)
- [log(_:)](simd/log(_:)-1zfuo.md)
- [log2(_:)](simd/log2(_:)-8x5g.md)
- [log10(_:)](simd/log10(_:)-4yb6z.md)
- [log1p(_:)](simd/log1p(_:)-15zc7.md)

### Geometry Functions

- [cross(_:_:)](simd/cross(_:_:)-53xk2.md)
- [dot(_:_:)](simd/dot(_:_:)-1vb5g.md)
- [normalize(_:)](simd/normalize(_:)-100kb.md)
- [project(_:_:)](simd/project(_:_:)-9wt83.md)
- [reflect(_:n:)](simd/reflect(_:n:)-6w80i.md)
- [refract(_:n:eta:)](simd/refract(_:n:eta:)-5bv79.md)

### Vector Norm Functions

- [norm_one(_:)](simd/norm_one(_:)-2y0m.md)
- [norm_inf(_:)](simd/norm_inf(_:)-9lj66.md)

### Length and Distance Functions

- [length(_:)](simd/length(_:)-6g7q5.md)
- [length_squared(_:)](simd/length_squared(_:)-6tcxv.md)
- [distance(_:_:)](simd/distance(_:_:)-1p8ae.md)
- [distance_squared(_:_:)](simd/distance_squared(_:_:)-9nmpe.md)

### Hyperbolic Functions

- [acosh(_:)](simd/acosh(_:)-16wup.md)
- [asinh(_:)](simd/asinh(_:)-14lj8.md)
- [atanh(_:)](simd/atanh(_:)-3o0hv.md)
- [cosh(_:)](simd/cosh(_:)-4n03p.md)
- [sinh(_:)](simd/sinh(_:)-2ft5c.md)
- [tanh(_:)](simd/tanh(_:)-8avnx.md)

### Logic Functions

- [simd_select(_:_:_:)](simd/simd_select(_:_:_:)-9jdc0.md)
- [simd_bitselect(_:_:_:)](simd/simd_bitselect(_:_:_:)-5g70k.md)

### Math Functions

- [cbrt(_:)](simd/cbrt(_:)-1t3k.md)
- [ceil(_:)](simd/ceil(_:)-8j6zo.md)
- [erf(_:)](simd/erf(_:)-1unjp.md)
- [erfc(_:)](simd/erfc(_:)-1hisg.md)
- [floor(_:)](simd/floor(_:)-1e9me.md)
- [fma(_:_:_:)](simd/fma(_:_:_:)-69k8u.md)
- [fmod(_:_:)](simd/fmod(_:_:)-566aw.md)
- [hypot(_:_:)](simd/hypot(_:_:)-1zs4i.md)
- [lgamma(_:)](simd/lgamma(_:)-1ksbv.md)
- [nextafter(_:_:)](simd/nextafter(_:_:)-8mat0.md)
- [pow(_:_:)](simd/pow(_:_:)-15e0y.md)
- [remainder(_:_:)](simd/remainder(_:_:)-37wwd.md)
- [round(_:)](simd/round(_:)-608of.md)
- [simd_muladd(_:_:_:)](simd/simd_muladd(_:_:_:)-45h2k.md)
- [tgamma(_:)](simd/tgamma(_:)-2aqvi.md)
- [trunc(_:)](simd/trunc(_:)-6neoe.md)

### Trigonometric Functions

- [acos(_:)](simd/acos(_:)-1ya4v.md)
- [asin(_:)](simd/asin(_:)-4tbvj.md)
- [atan(_:)](simd/atan(_:)-5v3x.md)
- [atan2(_:_:)](simd/atan2(_:_:)-4dpoz.md)
- [cos(_:)](simd/cos(_:)-59waa.md)
- [cospi(_:)](simd/cospi(_:)-2cd9u.md)
- [sin(_:)](simd/sin(_:)-5k8vo.md)
- [sinpi(_:)](simd/sinpi(_:)-524r6.md)
- [sincos(_:)](simd/sincos(_:)-4uhuq.md)
- [sincospi(_:)](simd/sincospi(_:)-11sii.md)
- [tan(_:)](simd/tan(_:)-4rx9f.md)
- [tanpi(_:)](simd/tanpi(_:)-3a1w1.md)

### Classification Functions

- [isfinite(_:)](simd/isfinite(_:)-zthr.md)
- [isinf(_:)](simd/isinf(_:)-9bb5h.md)
- [isnan(_:)](simd/isnan(_:)-7diw7.md)
- [isnormal(_:)](simd/isnormal(_:)-3n6dc.md)

### Alternative Type Alias

- [vector_float2](simd/vector_float2.md)
- [float2](simd/float2.md)

## See Also

### Vector data types

- [simd_float1](simd/simd_float1.md)
- [simd_float3](simd/simd_float3.md)
- [simd_float4](simd/simd_float4.md)
- [simd_float8](simd/simd_float8.md)
- [simd_float16](simd/simd_float16.md)
