Simplex properties
Given a simplex, the following functions calculate useful quantities.
Simplices.orientation
— Method.orientation(simplex::Array{T, 2}) where {T<:Number} -> Float64
Compute orientation of a simplex
, represented by a Array{Float64, 2}
of size (dim+1)
-by-dim
.
Simplices.volume
— Method.volume(simplex::Array{T, 2}) where {T<:Number} -> Float64
Compute the volume of a simplex
, represented by a Array{Float64, 2}
of size (dim+1)
-by-dim
.
Simplices.radius
— Method.radius(s::Array{T, 2}) where {T<:Number} -> Float64
Compute radius of a simplex s
, represented by a Array{Float64, 2}
of size (dim+1)
-by-dim
.
Simplices.radius
— Method.radius(simplex::Array{T, 2}, centroid::Array{T, 2}) where {T<:Number}
Compute radius of a simplex ((dim+1)
-by-dim
sized Array{Float64, 2}
given its centroid (1
-by-dim
sized Array{Float64, 2}
).
Simplices.centroid
— Method.centroid(simplex::Array{Float64, 2}) where {T<:Number} -> Array{Float64, 2}
Computes the centroid of a simplex given by (dim+1)
-by-dim
array, where each row is a vertex. Returns the centroid as a vertex (a 1
-by-dim
two-dimensional array).